From 0a5fe102a28f70a4b06a452f1843c5ca605f89d2 Mon Sep 17 00:00:00 2001 From: Roman Leventov Date: Tue, 23 Sep 2025 15:01:42 +0800 Subject: [PATCH] Make httpx's sync transport configurable --- litellm/llms/custom_httpx/http_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/custom_httpx/http_handler.py b/litellm/llms/custom_httpx/http_handler.py index 36b543086f5..28b1470e1f2 100644 --- a/litellm/llms/custom_httpx/http_handler.py +++ b/litellm/llms/custom_httpx/http_handler.py @@ -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(