fix: gpt-5-chat is not a reasoning model

* Exclude GPT-5-Chat 

Exclude GPT-5-Chat. It is not a reasoning model.

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
you-n-g
2025-11-09 21:39:45 +08:00
committed by GitHub
parent 44b594863c
commit f8a7cd1a60

View File

@@ -67,7 +67,8 @@ function M.get_user_message(opts)
end
function M.is_reasoning_model(model)
return model and (string.match(model, "^o%d+") ~= nil or string.match(model, "gpt%-5") ~= nil)
return model
and (string.match(model, "^o%d+") ~= nil or (string.match(model, "gpt%-5") ~= nil and model ~= "gpt-5-chat"))
end
function M.set_allowed_params(provider_conf, request_body)