From 78ead72af352dcb97851d2f5096b0f0c48f5bbcb Mon Sep 17 00:00:00 2001 From: ralvescosta Date: Fri, 4 Jul 2025 04:33:05 -0300 Subject: [PATCH] feat: update avante config --- lua/custom/plugins/avante.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lua/custom/plugins/avante.lua b/lua/custom/plugins/avante.lua index c838f66d..077161e1 100644 --- a/lua/custom/plugins/avante.lua +++ b/lua/custom/plugins/avante.lua @@ -4,13 +4,17 @@ return { event = 'VeryLazy', version = false, opts = { - provider = 'copilot', - cursor_applying_provider = 'copilot', - copilot = { - model = 'claude-3.7-sonnet', - temperature = 0, - max_tokens = 8192, + providers = { + copilot = { + model = 'claude-3.7-sonnet', + timeout = 30000, + extra_request_body = { + temperature = 0, + max_tokens = 8192, + }, + }, }, + cursor_applying_provider = 'copilot', }, -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` build = 'make',