feat: adds minuet-ai for fast completion(codestral)

This commit is contained in:
胡鑫
2025-04-10 16:00:49 +08:00
parent 3d4a16e8d8
commit 547b5e40c0
2 changed files with 43 additions and 20 deletions
+22
View File
@@ -3,6 +3,7 @@ local function deepseek(model)
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
max_completion_tokens = 12288,
model = model,
}
end
@@ -12,6 +13,7 @@ local function qwen(model)
__inherited_from = "openai",
api_key_name = "QWEN_API_KEY",
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
max_completion_tokens = 12288,
model = model,
disable_tools = true,
}
@@ -22,6 +24,7 @@ local function yostar(model)
__inherited_from = "openai",
api_key_name = "YOSTAR_API_KEY",
endpoint = "https://litellm.yostar.net",
max_completion_tokens = 12288,
model = model,
disable_tools = true,
}
@@ -32,6 +35,7 @@ local function codestral()
__inherited_from = "openai",
api_key_name = "CODESTRAL_API_KEY",
endpoint = "https://codestral.mistral.ai/v1",
max_completion_tokens = 12288,
model = "codestral-latest",
}
end
@@ -41,6 +45,7 @@ local function ark(model)
__inherited_from = "openai",
api_key_name = "ARK_API_KEY",
endpoint = "https://ark.cn-beijing.volces.com/api/v3/",
max_completion_tokens = 12288,
model = model,
}
end
@@ -158,4 +163,21 @@ return {
},
},
},
{
"milanglacier/minuet-ai.nvim",
config = function()
require("minuet").setup({
virtualtext = {
auto_trigger_ft = { "*" },
keymap = {
accept = "<M-l>",
accept_line = "<M-Down>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<M-BS>",
},
},
})
end,
},
}