Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: consistent usage of http_client across azure client init

Krrish Dholakia3bc7c35cb5bc
diff --git a/litellm/llms/azure/common_utils.py b/litellm/llms/azure/common_utils.py
index d409839c4d5..b055f49a7e0 100644
--- a/litellm/llms/azure/common_utils.py
+++ b/litellm/llms/azure/common_utils.py
@@ -332,6 +332,7 @@ class BaseAzureLLM:
"api_version": api_version,
"azure_ad_token": azure_ad_token,
"azure_ad_token_provider": azure_ad_token_provider,
+ "http_client": litellm.client_session,
}
if max_retries is not None:
azure_client_params["max_retries"] = max_retries