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): build v1 image query params without a mutable dict

Devin AIed9575520b28
diff --git a/litellm/llms/azure/common_utils.py b/litellm/llms/azure/common_utils.py
index 8d5c7687ec8..6cb7d09cec4 100644
--- a/litellm/llms/azure/common_utils.py
+++ b/litellm/llms/azure/common_utils.py
@@ -807,7 +807,7 @@ class BaseAzureLLM(BaseOpenAILLM):
resource_base: Final = str(
base_url.copy_with(
path=base_url.path if openai_path_start == -1 else base_url.path[:openai_path_start],
- params=httpx.QueryParams({k: v for k, v in base_url.params.items() if k != "api-version"}),
+ params=httpx.QueryParams(tuple((k, v) for k, v in base_url.params.multi_items() if k != "api-version")),
)
)
return BaseAzureLLM._get_base_azure_url(