mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/avante: providers migration
This commit is contained in:
parent
e89eb15456
commit
6e8d9f84b8
2 changed files with 76 additions and 55 deletions
|
@ -45,11 +45,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
provider = "claude";
|
provider = "claude";
|
||||||
claude = {
|
providers = {
|
||||||
endpoint = "https://api.anthropic.com";
|
claude = {
|
||||||
model = "claude-3-5-sonnet-20240620";
|
endpoint = "https://api.anthropic.com";
|
||||||
temperature = 0;
|
model = "claude-3-5-sonnet-20240620";
|
||||||
max_tokens = 4096;
|
extra_request_body = {
|
||||||
|
temperature = 0;
|
||||||
|
max_tokens = 4096;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
mappings = {
|
mappings = {
|
||||||
diff = {
|
diff = {
|
||||||
|
|
|
@ -15,52 +15,65 @@
|
||||||
system_prompt = ''
|
system_prompt = ''
|
||||||
You are an excellent programming expert.
|
You are an excellent programming expert.
|
||||||
'';
|
'';
|
||||||
openai = {
|
providers = {
|
||||||
endpoint = "https://api.openai.com/v1";
|
openai = {
|
||||||
model = "gpt-4o";
|
endpoint = "https://api.openai.com/v1";
|
||||||
timeout = 30000;
|
model = "gpt-4o";
|
||||||
temperature = 0;
|
timeout = 30000;
|
||||||
max_tokens = 4096;
|
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 = {
|
behaviour = {
|
||||||
auto_suggestions = false;
|
auto_suggestions = false;
|
||||||
auto_set_highlight_group = true;
|
auto_set_highlight_group = true;
|
||||||
|
@ -151,11 +164,15 @@
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
provider = "claude";
|
provider = "claude";
|
||||||
claude = {
|
providers = {
|
||||||
endpoint = "https://api.anthropic.com";
|
claude = {
|
||||||
model = "claude-3-5-sonnet-20240620";
|
endpoint = "https://api.anthropic.com";
|
||||||
temperature = 0;
|
model = "claude-3-5-sonnet-20240620";
|
||||||
max_tokens = 4096;
|
extra_request_body = {
|
||||||
|
temperature = 0;
|
||||||
|
max_tokens = 4096;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
mappings = {
|
mappings = {
|
||||||
diff = {
|
diff = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue