Skip to content

Commit 57ed2da

Browse files
committed
Simplify GPT-5 responses bridge condition
1 parent e74329d commit 57ed2da

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

litellm/main.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,14 +1005,8 @@ def responses_api_bridge_check(
10051005
and not OpenAIGPT5Config.is_model_gpt_5_search_model(model)
10061006
and reasoning_effort is not None
10071007
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-
)
1008+
reasoning_summary is not None
1009+
or (OpenAIGPT5Config.is_model_gpt_5_4_plus_model(model) and tools)
10161010
)
10171011
):
10181012
model_info["mode"] = "responses"

0 commit comments

Comments
 (0)