From 0f73cbcb92b5c3f7a37c9204ae1695672ddff222 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Jan 2026 16:16:18 +0000 Subject: [PATCH] enhance: improve DeepSeek provider configuration in avante.nvim Add timeout setting and restructure max_tokens into extra_request_body for better API request handling and proper configuration structure. --- lua/plugins/avante-nvim.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/plugins/avante-nvim.lua b/lua/plugins/avante-nvim.lua index e4f7c10..f45ae18 100644 --- a/lua/plugins/avante-nvim.lua +++ b/lua/plugins/avante-nvim.lua @@ -40,8 +40,13 @@ return { endpoint = "https://api.deepseek.com", -- AI model to use (specialized for programming) model = "deepseek-coder", + timeout = 30000, -- Timeout in milliseconds + extra_request_body = { + temperature = 0.2, + max_tokens = 8192, + }, -- Maximum number of tokens in model response - max_tokens = 8192, + -- max_tokens = 8192, -- Tools disable flag (commented out) -- disable_tools = true, },