plugins/avante: providers migration

This commit is contained in:
Austin Horstman 2025-06-10 19:38:00 -05:00 committed by Gaétan Lepage
parent e89eb15456
commit 6e8d9f84b8
2 changed files with 76 additions and 55 deletions

View file

@ -45,11 +45,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
settingsExample = {
provider = "claude";
claude = {
endpoint = "https://api.anthropic.com";
model = "claude-3-5-sonnet-20240620";
temperature = 0;
max_tokens = 4096;
providers = {
claude = {
endpoint = "https://api.anthropic.com";
model = "claude-3-5-sonnet-20240620";
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
};
mappings = {
diff = {

View file

@ -15,52 +15,65 @@
system_prompt = ''
You are an excellent programming expert.
'';
openai = {
endpoint = "https://api.openai.com/v1";
model = "gpt-4o";
timeout = 30000;
temperature = 0;
max_tokens = 4096;
providers = {
openai = {
endpoint = "https://api.openai.com/v1";
model = "gpt-4o";
timeout = 30000;
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
copilot = {
endpoint = "https://api.githubcopilot.com";
model = "gpt-4o-2024-05-13";
proxy = null;
allow_insecure = false;
timeout = 30000;
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
azure = {
endpoint = "";
deployment = "";
api_version = "2024-06-01";
timeout = 30000;
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
claude = {
endpoint = "https://api.anthropic.com";
model = "claude-3-5-sonnet-20240620";
timeout = 30000;
extra_request_body = {
temperature = 0;
max_tokens = 8000;
};
};
gemini = {
endpoint = "https://generativelanguage.googleapis.com/v1beta/models";
model = "gemini-1.5-flash-latest";
timeout = 30000;
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
cohere = {
endpoint = "https://api.cohere.com/v1";
model = "command-r-plus-08-2024";
timeout = 30000;
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
};
copilot = {
endpoint = "https://api.githubcopilot.com";
model = "gpt-4o-2024-05-13";
proxy = null;
allow_insecure = false;
timeout = 30000;
temperature = 0;
max_tokens = 4096;
};
azure = {
endpoint = "";
deployment = "";
api_version = "2024-06-01";
timeout = 30000;
temperature = 0;
max_tokens = 4096;
};
claude = {
endpoint = "https://api.anthropic.com";
model = "claude-3-5-sonnet-20240620";
timeout = 30000;
temperature = 0;
max_tokens = 8000;
};
gemini = {
endpoint = "https://generativelanguage.googleapis.com/v1beta/models";
model = "gemini-1.5-flash-latest";
timeout = 30000;
temperature = 0;
max_tokens = 4096;
};
cohere = {
endpoint = "https://api.cohere.com/v1";
model = "command-r-plus-08-2024";
timeout = 30000;
temperature = 0;
max_tokens = 4096;
};
vendors = { };
behaviour = {
auto_suggestions = false;
auto_set_highlight_group = true;
@ -151,11 +164,15 @@
settings = {
provider = "claude";
claude = {
endpoint = "https://api.anthropic.com";
model = "claude-3-5-sonnet-20240620";
temperature = 0;
max_tokens = 4096;
providers = {
claude = {
endpoint = "https://api.anthropic.com";
model = "claude-3-5-sonnet-20240620";
extra_request_body = {
temperature = 0;
max_tokens = 4096;
};
};
};
mappings = {
diff = {