mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-01 06:22:01 +00:00
Simplify GPT-5 responses bridge condition
This commit is contained in:
+2
-8
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user