Skip to content

Commit 0a5fe10

Browse files
committed
Make httpx's sync transport configurable
1 parent 6a9ebe8 commit 0a5fe10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

litellm/llms/custom_httpx/http_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ def _create_sync_transport(self) -> Optional[HTTPTransport]:
915915
if litellm.force_ipv4:
916916
return HTTPTransport(local_address="0.0.0.0")
917917
else:
918-
return None
918+
return getattr(litellm, 'sync_transport', None)
919919

920920

921921
def get_async_httpx_client(

0 commit comments

Comments
 (0)