Skip to content

Upload file via stream #537

@LindaLawton

Description

@LindaLawton

Description of the feature request:

Currently the only way to upload a file is to send the path of the file

It looks like client.py#L73

Is there anyway to get this to take a stream

media = googleapiclient.http.MediaFileUpload(
        filename=path, mimetype=mime_type, resumable=resumable
    )

What problem are you trying to solve with this feature?

I am downloading a file from another site and would rather not have to save it to disk only to send it to Gemini.

Any other information you'd like to share?

please

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions