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(azure): remove trailing semicolon in Content-Type header for image generation (#13584)

Michael Verunica37e57a0e5fe2
diff --git a/litellm/images/main.py b/litellm/images/main.py
index b808388d83e..9ce83ccc18a 100644
--- a/litellm/images/main.py
+++ b/litellm/images/main.py
@@ -311,7 +311,7 @@ def image_generation( # noqa: PLR0915
) or get_secret_str("AZURE_AD_TOKEN")
default_headers = {
- "Content-Type": "application/json;",
+ "Content-Type": "application/json",
"api-key": api_key,
}
for k, v in default_headers.items():