Simplify GPT-5 responses bridge condition

This commit is contained in:
Cursor Agent
2026-05-11 05:51:51 +00:00
parent e74329db30
commit 57ed2dad4b
+2 -8
View File
@@ -1005,14 +1005,8 @@ def responses_api_bridge_check(
and not OpenAIGPT5Config.is_model_gpt_5_search_model(model)
and reasoning_effort is not None
and (
(
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"