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(openai): align gpt-5.4 reasoning_effort drop with main
Chesars17dbc61f3947
diff --git a/litellm/llms/openai/chat/gpt_5_transformation.py b/litellm/llms/openai/chat/gpt_5_transformation.pyindex f19d4891c6e..17135ce9574 100644--- a/litellm/llms/openai/chat/gpt_5_transformation.py+++ b/litellm/llms/openai/chat/gpt_5_transformation.py@@ -235,11 +235,8 @@ class OpenAIGPT5Config(OpenAIGPTConfig):non_default_params.get("tools") or optional_params.get("tools"))if has_tools and effective_effort not in (None, "none"):- # Check if this will be routed to Responses API- # If so, keep reasoning_effort; otherwise drop it for chat completions API- if not self.is_model_gpt_5_4_plus_model(model):- non_default_params.pop("reasoning_effort", None)- optional_params.pop("reasoning_effort", None)+ non_default_params.pop("reasoning_effort", None)+ optional_params.pop("reasoning_effort", None)# gpt-5.1/5.2 support logprobs, top_p, top_logprobs only when reasoning_effort="none"supports_none = self._supports_reasoning_effort_level(model, "none")