feat: add vertex claude provider (#1549)

* feat: Add vertex claude provider

* remove debug logging

---------

Co-authored-by: Miguelo Sana <miguelo@incubeta.com>
This commit is contained in:
miguelosana
2025-03-10 15:43:10 +01:00
committed by GitHub
parent 7d7f93d093
commit 3eaaaa8f5f
3 changed files with 68 additions and 0 deletions

View File

@@ -264,6 +264,14 @@ M._defaults = {
num_ctx = 4096,
},
},
---@type AvanteSupportedProvider
vertex_claude = {
endpoint = "https://LOCATION-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/publishers/antrhopic/models",
model = "claude-3-5-sonnet-v2@20241022",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
},
---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}