avante: new configuration format for deepseek
This commit is contained in:
parent
9240bb4db9
commit
ab587ab729
1 changed files with 23 additions and 9 deletions
|
@ -1,18 +1,32 @@
|
|||
# Cursor like ai driven code suggestions
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
img-clip-nvim
|
||||
];
|
||||
plugins.avante = {
|
||||
enable = true;
|
||||
settings = {
|
||||
provider = "openai";
|
||||
auto_suggestions_provider = "openai";
|
||||
openai = {
|
||||
endpoint = "https://api.deepseek.com/v1";
|
||||
model = "deepseek-chat";
|
||||
timeout = 30000;
|
||||
temperature = 0;
|
||||
max_tokens = 4096;
|
||||
provider = "deepseek";
|
||||
vendors = {
|
||||
deepseek = {
|
||||
__inherited_from = "openai";
|
||||
api_key_name = "DEEPSEEK_API_KEY";
|
||||
# endpoint = "https://api.deepseek.com";
|
||||
# model = "deepseek-chat";
|
||||
endpoint = "https://ark.cn-beijing.volces.com/api/v3";
|
||||
model = "deepseek-v3-250324";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
plugins.render-markdown = {
|
||||
enable = true;
|
||||
settings = {
|
||||
file_types = [
|
||||
"markdown"
|
||||
"Avante"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue