We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e74329d commit 57ed2daCopy full SHA for 57ed2da
1 file changed
litellm/main.py
@@ -1005,14 +1005,8 @@ def responses_api_bridge_check(
1005
and not OpenAIGPT5Config.is_model_gpt_5_search_model(model)
1006
and reasoning_effort is not None
1007
and (
1008
- (
1009
- OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model)
1010
- and (tools or reasoning_summary is not None)
1011
- )
1012
- or (
1013
- not OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model)
1014
- and reasoning_summary is not None
1015
+ reasoning_summary is not None
+ or (OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model) and tools)
1016
)
1017
):
1018
model_info["mode"] = "responses"
0 commit comments