From 69f9e3d5b49a38205d7385180bc2a996bb01706b Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Thu, 26 Jun 2025 23:15:59 -0400 Subject: [PATCH] Update avante config --- lua/custom/plugins/avante.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lua/custom/plugins/avante.lua b/lua/custom/plugins/avante.lua index b6b423a8..442d3b6d 100644 --- a/lua/custom/plugins/avante.lua +++ b/lua/custom/plugins/avante.lua @@ -2,15 +2,22 @@ return { 'yetone/avante.nvim', event = 'VeryLazy', version = false, -- Never set this value to "*"! Never! + ---@module 'avante' + ---@type avante.Config opts = { -- add any opts here -- for example provider = 'claude', - claude = { - endpoint = 'https://api.anthropic.com', - model = 'claude-3-5-sonnet-20241022', - temperature = 0, - max_tokens = 4096, + providers = { + claude = { + endpoint = 'https://api.anthropic.com', + model = 'claude-sonnet-4-20250514', + timeout = 30000, + extra_request_body = { + temperature = 0.75, + max_tokens = 20480, + }, + }, }, }, -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`