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.
This commit is contained in:
root 2026-01-27 16:16:18 +00:00
parent fc930deb4b
commit 0f73cbcb92

View File

@ -40,8 +40,13 @@ return {
endpoint = "https://api.deepseek.com", endpoint = "https://api.deepseek.com",
-- AI model to use (specialized for programming) -- AI model to use (specialized for programming)
model = "deepseek-coder", model = "deepseek-coder",
-- Maximum number of tokens in model response timeout = 30000, -- Timeout in milliseconds
extra_request_body = {
temperature = 0.2,
max_tokens = 8192, max_tokens = 8192,
},
-- Maximum number of tokens in model response
-- max_tokens = 8192,
-- Tools disable flag (commented out) -- Tools disable flag (commented out)
-- disable_tools = true, -- disable_tools = true,
}, },