googleapis / googleapis/python-genai

Streaming `download` response from HTTPX/AioHTTP?

Ouverte
#1,801 1 commentaire 0 réactions 1 personne assignée Assignée à @kkorpal Voir sur GitHub
api: gemini-api type: feature request
Langage dominant
Python
Étoiles
4k
Forks
1k
Merge moyen
2 j 12 h
PR mergées (30 j)
41

Description

Hello!

I wonder why this library doesn’t use streaming when downloading content…

Isn’t Veo 3 (or other models) capable of generating 1 GB files?
And whole 1 GB file will be loaded in the memory ;(
as I found out here:
https://github.com/googleapis/python-genai/blob/5b50adce2a76cb77bef067bc0a624d111d39c2dc/google/genai/_api_client.py#L1886

---

Both aiohttp and httpx have streaming functionality…
Maybe I’m wrong, but I see it as a matter of adding `stream_download` function or an argument (whether to stream the response) to existing `download` function.

Please guys! For folks that care how much RAM they have…

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.