mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Simplify GPT-5 responses bridge condition
This commit is contained in:
parent
e74329db30
commit
57ed2dad4b
1 changed files with 2 additions and 8 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue