Skip to content

Commit 8b10efb

Browse files
fix: forward http_options in async_request_streamed to enable retry support (#2097)
* fix: forward http_options in async_request_streamed to enable retry support * Empty commit --------- Co-authored-by: Amy Wu <wuamy@google.com>
1 parent 5e5e5fb commit 8b10efb

2 files changed

Lines changed: 409 additions & 2 deletions

File tree

google/genai/_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ async def async_request_streamed(
14611461
http_method, path, request_dict, http_options
14621462
)
14631463

1464-
response = await self._async_request(http_request=http_request, stream=True)
1464+
response = await self._async_request(http_request=http_request, http_options=http_options, stream=True)
14651465

14661466
async def async_generator(): # type: ignore[no-untyped-def]
14671467
async for chunk in response:

0 commit comments

Comments
 (0)