Make httpx's sync transport configurable

This commit is contained in:
Roman Leventov 2025-09-23 15:01:42 +08:00
parent 6a9ebe88c2
commit 0a5fe102a2

View file

@ -915,7 +915,7 @@ class HTTPHandler:
if litellm.force_ipv4:
return HTTPTransport(local_address="0.0.0.0")
else:
return None
return getattr(litellm, 'sync_transport', None)
def get_async_httpx_client(