feat: modernize avante & mason issues?
This commit is contained in:
+7
-87
@@ -1,50 +1,8 @@
|
||||
local function deepseek(model)
|
||||
return {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "DEEPSEEK_API_KEY",
|
||||
endpoint = "https://api.deepseek.com",
|
||||
max_completion_tokens = 12288,
|
||||
model = model,
|
||||
}
|
||||
end
|
||||
|
||||
local function qwen(model)
|
||||
return {
|
||||
__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,
|
||||
}
|
||||
end
|
||||
|
||||
local function yostar(model)
|
||||
return {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "YOSTAR_API_KEY",
|
||||
endpoint = "https://litellm.yostar.net",
|
||||
max_completion_tokens = 12288,
|
||||
model = model,
|
||||
}
|
||||
end
|
||||
|
||||
local function codestral()
|
||||
return {
|
||||
__inherited_from = "openai",
|
||||
api_key_name = "CODESTRAL_API_KEY",
|
||||
endpoint = "https://codestral.mistral.ai/v1",
|
||||
max_completion_tokens = 12288,
|
||||
model = "codestral-latest",
|
||||
}
|
||||
end
|
||||
|
||||
local function ark(model)
|
||||
return {
|
||||
__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
|
||||
@@ -52,9 +10,9 @@ end
|
||||
return {
|
||||
{
|
||||
"yetone/avante.nvim",
|
||||
build = vim.fn.has("win32") ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
|
||||
or "make",
|
||||
event = "VeryLazy",
|
||||
lazy = true,
|
||||
build = "make",
|
||||
dependencies = {
|
||||
"stevearc/dressing.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
@@ -68,37 +26,17 @@ return {
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
provider = "arkv3",
|
||||
auto_suggestions_provider = "arkv3",
|
||||
-- cursor_applying_provider = "yoqwen32",
|
||||
-- behaviour = {
|
||||
-- enable_cursor_planning_mode = true, -- enable cursor planning mode!
|
||||
-- },
|
||||
|
||||
file_selector = {
|
||||
provider = "fzf-lua",
|
||||
provider_opts = {},
|
||||
},
|
||||
|
||||
vendors = {
|
||||
provider = "qwen3coder",
|
||||
auto_suggestions_provider = "qwen332b",
|
||||
|
||||
-- ds
|
||||
dsv3 = deepseek("deepseek-chat"),
|
||||
dsr1 = deepseek("deepseek-reasoner"),
|
||||
|
||||
-- 百炼
|
||||
qwenv3 = qwen("deepseek-v3"),
|
||||
qwenr1 = qwen("deepseek-r1"),
|
||||
|
||||
-- yostar
|
||||
yor1 = yostar("DeepSeek-R1"),
|
||||
yov3 = yostar("DeepSeek-V3"),
|
||||
|
||||
-- ark
|
||||
arkv3 = ark("deepseek-v3-250324"),
|
||||
|
||||
-- codestral
|
||||
codestral = codestral(),
|
||||
providers = {
|
||||
qwen3coder = qwen("qwen3-coder-480b-a35b-instruct"),
|
||||
qwen332b = qwen("qwen3-32b"),
|
||||
},
|
||||
|
||||
-- Key mappings for diff functionality
|
||||
@@ -171,22 +109,4 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"milanglacier/minuet-ai.nvim",
|
||||
event = "InsertEnter",
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user