File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1619,11 +1619,12 @@ def __next__(self): # noqa: PLR0915
1619
1619
completion_start_time = datetime .datetime .now ()
1620
1620
)
1621
1621
## LOGGING
1622
- executor .submit (
1623
- self .run_success_logging_and_cache_storage ,
1624
- response ,
1625
- cache_hit ,
1626
- ) # log response
1622
+ if not litellm .disable_streaming_logging :
1623
+ executor .submit (
1624
+ self .run_success_logging_and_cache_storage ,
1625
+ response ,
1626
+ cache_hit ,
1627
+ ) # log response
1627
1628
choice = response .choices [0 ]
1628
1629
if isinstance (choice , StreamingChoices ):
1629
1630
self .response_uptil_now += choice .delta .get ("content" , "" ) or ""
Original file line number Diff line number Diff line change @@ -935,7 +935,7 @@ def _create_sync_transport(self) -> Optional[HTTPTransport]:
935
935
if litellm .force_ipv4 :
936
936
return HTTPTransport (local_address = "0.0.0.0" )
937
937
else :
938
- return None
938
+ return getattr ( litellm , 'sync_transport' , None )
939
939
940
940
941
941
def get_async_httpx_client (
You can’t perform that action at this time.
0 commit comments