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
Simplify GPT-5 responses bridge condition
Cursor Agent57ed2dad4bda
diff --git a/litellm/main.py b/litellm/main.pyindex 3fc1f2d4dd3..c324f982b84 100644--- a/litellm/main.py+++ b/litellm/main.py@@ -1005,14 +1005,8 @@ def responses_api_bridge_check(and not OpenAIGPT5Config.is_model_gpt_5_search_model(model)and reasoning_effort is not Noneand (- (- OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model)- and (tools or reasoning_summary is not None)- )- or (- not OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model)- and reasoning_summary is not None- )+ reasoning_summary is not None+ or (OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model) and tools))):model_info["mode"] = "responses"