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 for o-series param checks
Ishaan Jaff973520255bc8
diff --git a/litellm/llms/azure/chat/o_series_transformation.py b/litellm/llms/azure/chat/o_series_transformation.pyindex 767f2d46df3..778ec5f6dea 100644--- a/litellm/llms/azure/chat/o_series_transformation.py+++ b/litellm/llms/azure/chat/o_series_transformation.py@@ -38,13 +38,38 @@ class AzureOpenAIO1Config(OpenAIOSeriesConfig):"top_logprobs",]- o_series_only_param = []- if supports_reasoning(model):- o_series_only_param.append("reasoning_effort")+ o_series_only_param = self._get_o_series_only_params(model)+all_openai_params.extend(o_series_only_param)return [param for param in all_openai_params if param not in non_supported_params]++ def _get_o_series_only_params(self, model: str) -> list:+ """+ Helper function to get the o-series only params for the model++ - reasoning_effort+ """+ o_series_only_param = []+++ #########################################################+ # Case 1: If the model is recognized and in litellm model cost map+ # then check if it supports reasoning+ #########################################################+ if model in litellm.model_list_set:+ if supports_reasoning(model):+ o_series_only_param.append("reasoning_effort")+ #########################################################+ # Case 2: If the model is not recognized, then we assume it supports reasoning+ # This is critical because several users tend to use custom deployment names+ # for azure o-series models.+ #########################################################+ else:+ o_series_only_param.append("reasoning_effort")++ return o_series_only_paramdef should_fake_stream(self,