File tree Expand file tree Collapse file tree
src/a2a/client/transports Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ async def send_message_streaming(
125125 async for event in self ._send_stream_request (
126126 payload ,
127127 http_kwargs = modified_kwargs ,
128- timeout = self .httpx_client .timeout .as_dict ().get ('read' , None ),
129128 ):
130129 yield event
131130
@@ -374,7 +373,6 @@ async def subscribe(
374373 async for event in self ._send_stream_request (
375374 payload ,
376375 http_kwargs = modified_kwargs ,
377- timeout = self .httpx_client .timeout .as_dict ().get ('read' , None ),
378376 ):
379377 yield event
380378
@@ -486,7 +484,6 @@ async def _send_stream_request(
486484 ) -> AsyncGenerator [StreamResponse ]:
487485 final_kwargs = dict (http_kwargs or {})
488486 final_kwargs .update (kwargs )
489- final_kwargs .setdefault ('timeout' , None )
490487 headers = dict (self .httpx_client .headers .items ())
491488 headers .update (final_kwargs .get ('headers' , {}))
492489 final_kwargs ['headers' ] = headers
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ async def send_message_streaming(
102102 '/v1/message:stream' ,
103103 http_kwargs = modified_kwargs ,
104104 json = payload ,
105- timeout = self .httpx_client .timeout .as_dict ().get ('read' , None ),
106105 ):
107106 yield event
108107
@@ -320,7 +319,6 @@ async def subscribe(
320319 'GET' ,
321320 f'/v1/tasks/{ request .id } :subscribe' ,
322321 http_kwargs = modified_kwargs ,
323- timeout = self .httpx_client .timeout .as_dict ().get ('read' , None ),
324322 ):
325323 yield event
326324
@@ -430,7 +428,6 @@ async def _send_stream_request(
430428 ) -> AsyncGenerator [StreamResponse ]:
431429 final_kwargs = dict (http_kwargs or {})
432430 final_kwargs .update (kwargs )
433- final_kwargs .setdefault ('timeout' , None )
434431
435432 async for sse_data in send_http_stream_request (
436433 self .httpx_client ,
You can’t perform that action at this time.
0 commit comments