Reset code state to commit e70b0fa243bb8ac07cfc7892f4722e433aa996cb

This commit is contained in:
zhangkun9038@dingtalk.com 2025-02-10 02:38:38 +08:00
parent 7d021f92bb
commit 676e1194b1

View File

@ -10,7 +10,7 @@ local M = {}
---@class avante.Config ---@class avante.Config
M._defaults = { M._defaults = {
debug = false, debug = false,
---@alias Provider "claude" | "openai" | "azure" | "gemini" | "vertex" | "cohere" | "copilot" | "baidu" | string ---@alias Provider "claude" | "openai" | "azure" | "gemini" | "vertex" | "cohere" | "copilot" | string
provider = "claude", -- Only recommend using Claude provider = "claude", -- Only recommend using Claude
-- WARNING: Since auto-suggestions are a high-frequency operation and therefore expensive, -- WARNING: Since auto-suggestions are a high-frequency operation and therefore expensive,
-- currently designating it as `copilot` provider is dangerous because: https://github.com/yetone/avante.nvim/issues/1048 -- currently designating it as `copilot` provider is dangerous because: https://github.com/yetone/avante.nvim/issues/1048
@ -130,28 +130,10 @@ M._defaults = {
temperature = 0, temperature = 0,
max_tokens = 4096, max_tokens = 4096,
}, },
baidu = {
endpoint = "https://dashscope.aliyuncs.com/compatible-mode/v1/",
model = "deepseek-v3",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
},
---To add support for custom provider, follow the format below ---To add support for custom provider, follow the format below
---See https://github.com/yetone/avante.nvim/wiki#custom-providers for more details ---See https://github.com/yetone/avante.nvim/wiki#custom-providers for more details
---@type {[string]: AvanteProvider} ---@type {[string]: AvanteProvider}
vendors = { vendors = {
---@type AvanteSupportedProvider
["baidu"] = {
endpoint = "https://qianfan.baidubce.com/v2",
model = "deepseek-v3",
timeout = 30000,
temperature = 0,
max_tokens = 4096,
appid = "", -- Required for baidu provider
disable_search = false,
enable_citation = false,
},
---@type AvanteSupportedProvider ---@type AvanteSupportedProvider
["claude-haiku"] = { ["claude-haiku"] = {
__inherited_from = "claude", __inherited_from = "claude",