@@ -863,7 +863,7 @@ def _request(
863863 self ._prepare_request (request )
864864
865865 try :
866- response = self ._client .send (request , auth = self .custom_auth , stream = stream or options . stream or False )
866+ response = self ._client .send (request , auth = self .custom_auth , stream = stream )
867867 log .debug (
868868 'HTTP Request: %s %s "%i %s"' , request .method , request .url , response .status_code , response .reason_phrase
869869 )
@@ -1304,7 +1304,7 @@ async def _request(
13041304 await self ._prepare_request (request )
13051305
13061306 try :
1307- response = await self ._client .send (request , auth = self .custom_auth , stream = stream or options . stream or False )
1307+ response = await self ._client .send (request , auth = self .custom_auth , stream = stream )
13081308 log .debug (
13091309 'HTTP Request: %s %s "%i %s"' , request .method , request .url , response .status_code , response .reason_phrase
13101310 )
@@ -1541,7 +1541,6 @@ def make_request_options(
15411541 idempotency_key : str | None = None ,
15421542 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
15431543 post_parser : PostParser | NotGiven = NOT_GIVEN ,
1544- stream : bool | None = None ,
15451544) -> RequestOptions :
15461545 """Create a dict of type RequestOptions without keys of NotGiven values."""
15471546 options : RequestOptions = {}
@@ -1563,9 +1562,6 @@ def make_request_options(
15631562 if idempotency_key is not None :
15641563 options ["idempotency_key" ] = idempotency_key
15651564
1566- if stream is not None :
1567- options ["stream" ] = stream
1568-
15691565 if is_given (post_parser ):
15701566 # internal
15711567 options ["post_parser" ] = post_parser # type: ignore
0 commit comments