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
16191619 completion_start_time = datetime .datetime .now ()
16201620 )
16211621 ## 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
16271628 choice = response .choices [0 ]
16281629 if isinstance (choice , StreamingChoices ):
16291630 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]:
935935 if litellm .force_ipv4 :
936936 return HTTPTransport (local_address = "0.0.0.0" )
937937 else :
938- return None
938+ return getattr ( litellm , 'sync_transport' , None )
939939
940940
941941def get_async_httpx_client (
You can’t perform that action at this time.
0 commit comments