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:
parent
fc930deb4b
commit
0f73cbcb92
@ -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",
|
||||||
|
timeout = 30000, -- Timeout in milliseconds
|
||||||
|
extra_request_body = {
|
||||||
|
temperature = 0.2,
|
||||||
|
max_tokens = 8192,
|
||||||
|
},
|
||||||
-- Maximum number of tokens in model response
|
-- Maximum number of tokens in model response
|
||||||
max_tokens = 8192,
|
-- max_tokens = 8192,
|
||||||
-- Tools disable flag (commented out)
|
-- Tools disable flag (commented out)
|
||||||
-- disable_tools = true,
|
-- disable_tools = true,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user