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
fix unrecognised parameter reasoning_effort (#11838)
Shankyg30318c40c988
diff --git a/litellm/llms/azure/chat/o_series_transformation.py b/litellm/llms/azure/chat/o_series_transformation.pyindex 69fb941ca58..767f2d46df3 100644--- a/litellm/llms/azure/chat/o_series_transformation.py+++ b/litellm/llms/azure/chat/o_series_transformation.py@@ -17,7 +17,7 @@ from typing import List, Optionalimport litellmfrom litellm import verbose_loggerfrom litellm.types.llms.openai import AllMessageValues-from litellm.utils import get_model_info+from litellm.utils import get_model_info, supports_reasoningfrom ...openai.chat.o_series_transformation import OpenAIOSeriesConfig@@ -38,7 +38,9 @@ class AzureOpenAIO1Config(OpenAIOSeriesConfig):"top_logprobs",]- o_series_only_param = ["reasoning_effort"]+ o_series_only_param = []+ if supports_reasoning(model):+ o_series_only_param.append("reasoning_effort")all_openai_params.extend(o_series_only_param)return [param for param in all_openai_params if param not in non_supported_params