From 6d9e0cf119271b424fa365a9197d3e53787cc3b0 Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 27 Jun 2025 15:39:32 +0800 Subject: [PATCH] fix: reduce the context window of copilot (#2350) --- 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 4545d8b..efd1eac 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -251,7 +251,7 @@ M._defaults = { proxy = nil, -- [protocol://]host[:port] Use this proxy allow_insecure = false, -- Allow insecure server connections timeout = 30000, -- Timeout in milliseconds - context_window = 128000, -- Number of tokens to send to the model for context + context_window = 64000, -- Number of tokens to send to the model for context extra_request_body = { temperature = 0.75, max_tokens = 20480,