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
GPT-5: Remove params unsupported with reasoning models
Ivan Krakhmaliuk2622a0634a4f
diff --git a/litellm/llms/openai/chat/gpt_5_transformation.py b/litellm/llms/openai/chat/gpt_5_transformation.pyindex 9a8bb74d447..3902304a3b4 100644--- a/litellm/llms/openai/chat/gpt_5_transformation.py+++ b/litellm/llms/openai/chat/gpt_5_transformation.py@@ -28,7 +28,18 @@ class OpenAIGPT5Config(OpenAIGPTConfig):base_gpt_series_params.extend(gpt_5_only_params)if not supports_tool_choice(model=model):base_gpt_series_params.remove("tool_choice")- return base_gpt_series_params++ non_supported_params = [+ "logprobs",+ "top_p",+ "presence_penalty",+ "frequency_penalty",+ "top_logprobs",+ ]++ return [+ param for param in base_gpt_series_params if param not in non_supported_params+ ]def map_openai_params(self,