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]

style(azure): format request parameter filter

David Steele48712f733a64
diff --git a/litellm/llms/azure/chat/gpt_transformation.py b/litellm/llms/azure/chat/gpt_transformation.py
index 0debbe4f74d..7cb50ee5348 100644
--- a/litellm/llms/azure/chat/gpt_transformation.py
+++ b/litellm/llms/azure/chat/gpt_transformation.py
@@ -283,9 +283,7 @@ class AzureOpenAIConfig(BaseConfig):
request_params: Final = {
key: value
for key, value in optional_params.items()
- if key != "tool_choice"
- or optional_params.get("tools")
- or optional_params.get("functions")
+ if key != "tool_choice" or optional_params.get("tools") or optional_params.get("functions")
}
return {
"model": model,