From 16c58c2e6f5d0c3640e19129cfb13dc81cf5ffe2 Mon Sep 17 00:00:00 2001 From: you-n-g Date: Tue, 12 Aug 2025 15:13:44 +0800 Subject: [PATCH] fix: update config.lua default value for gpt-5-chat (#2594) --- lua/avante/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/config.lua b/lua/avante/config.lua index 7f9c077..87bec79 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -271,7 +271,7 @@ M._defaults = { timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models extra_request_body = { temperature = 0.75, - max_completion_tokens = 20480, -- Increase this to include reasoning tokens (for reasoning models) + max_completion_tokens = 16384, -- Increase this toinclude reasoning tokens (for reasoning models); but too large default value will not fit for some models (e.g. gpt-5-chat supports at most 16384 completion tokens) reasoning_effort = "medium", -- low|medium|high, only used for reasoning models }, },