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)