chore(config): add default claude-haiku and claude-opus (closes #774) (#801)

This commit is contained in:
Aaron Pham 2024-11-04 20:54:33 -05:00 committed by GitHub
parent 16e10c5f88
commit 8699ada7b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,26 @@ M.defaults = {
---To add support for custom provider, follow the format below
---See https://github.com/yetone/avante.nvim/wiki#custom-providers for more details
---@type {[string]: AvanteProvider}
vendors = {},
vendors = {
---@type AvanteSupportedProvider
["claude-haiku"] = {
endpoint = "https://api.anthropic.com",
model = "claude-3-5-haiku-20241022",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 8000,
["local"] = false,
},
---@type AvanteSupportedProvider
["claude-opus"] = {
endpoint = "https://api.anthropic.com",
model = "claude-3-opus-20240229",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 8000,
["local"] = false,
},
},
---Specify the behaviour of avante.nvim
---1. auto_apply_diff_after_generation: Whether to automatically apply diff after LLM response.
--- This would simulate similar behaviour to cursor. Default to false.