From f8a7cd1a606460ec0a2c4ec886bc102daccf912e Mon Sep 17 00:00:00 2001 From: you-n-g Date: Sun, 9 Nov 2025 21:39:45 +0800 Subject: [PATCH] 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> --- lua/avante/providers/openai.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/avante/providers/openai.lua b/lua/avante/providers/openai.lua index ddc1a15..6291e39 100644 --- a/lua/avante/providers/openai.lua +++ b/lua/avante/providers/openai.lua @@ -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)