feat: specific provider for auto-suggestions (#569)

This commit is contained in:
yetone
2024-09-12 14:23:00 +08:00
committed by GitHub
parent 8184275770
commit 0642905c80
4 changed files with 9 additions and 3 deletions

View File

@@ -192,6 +192,7 @@ _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
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-3-5-sonnet-20240620",