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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Revert "#14404 BugFix - Add support for Azure AD token-based authorization in image generation request headers definition for Azure"
Shagun Bansal250e13ea928c
diff --git a/litellm/images/main.py b/litellm/images/main.pyindex 0e11d9d3e56..2a8b62bce24 100644--- a/litellm/images/main.py+++ b/litellm/images/main.py@@ -314,15 +314,6 @@ def image_generation( # noqa: PLR0915"Content-Type": "application/json","api-key": api_key,}-- if api_key is None and azure_ad_token_provider is not None:- azure_ad_token = azure_ad_token_provider()- if azure_ad_token:- default_headers.pop(- "api-key", None- )- default_headers["Authorization"] = f"Bearer {azure_ad_token}"-for k, v in default_headers.items():if k not in headers:headers[k] = v