Simplify GPT-5 responses bridge condition
This commit is contained in:
parent
e74329db30
commit
57ed2dad4b
@ -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…
Reference in New Issue
Block a user