docs: update auto_suggestions doc (#1120)

This commit is contained in:
yetone 2025-01-23 12:12:02 +08:00 committed by GitHub
parent 501a138ebc
commit be75ddea1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,7 +213,10 @@ _See [config.lua#L9](./lua/avante/config.lua) for the full config_
{
---@alias Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string
provider = "claude", -- Recommend using Claude
auto_suggestions_provider = "claude", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
-- WARNING: Since auto-suggestions are a high-frequency operation and therefore expensive,
-- currently designating it as `copilot` provider is dangerous because: https://github.com/yetone/avante.nvim/issues/1048
-- Of course, you can reduce the request frequency by increasing `suggestion.debounce`.
auto_suggestions_provider = "claude",
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-3-5-sonnet-20241022",
@ -320,6 +323,10 @@ _See [config.lua#L9](./lua/avante/config.lua) for the full config_
--- Disable by setting to -1.
override_timeoutlen = 500,
},
suggestion = {
debounce = 600,
throttle = 600,
},
}
```
## Blink.cmp users