googleapis / googleapis/python-genai

Streaming `download` response from HTTPX/AioHTTP?

オープン
#1,801 コメント 1 件 リアクション 0 件 担当者 1 名 @kkorpal に割り当て済み GitHub で見る
api: gemini-api type: feature request
主要言語
Python
スター
4k
フォーク
1k
平均マージ
2日 12時間
マージ済み PR(30日)
41

説明

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…

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。