revert config.lua
This commit is contained in:
parent
47e23787e5
commit
8472880c89
@ -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" | "ollama" | 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,17 +130,6 @@ M._defaults = {
|
|||||||
temperature = 0,
|
temperature = 0,
|
||||||
max_tokens = 4096,
|
max_tokens = 4096,
|
||||||
},
|
},
|
||||||
---@type AvanteSupportedProvider
|
|
||||||
baidu = {
|
|
||||||
endpoint = "https://your-baidu-endpoint.com",
|
|
||||||
model = "deepseek-v3",
|
|
||||||
appid = "your-appid", -- 假设需要 appid
|
|
||||||
api_key_name = "BAIDU_API_KEY",
|
|
||||||
auto_suggestion_provider = "baidu", -- 根据实际情况设置
|
|
||||||
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}
|
||||||
@ -161,14 +150,6 @@ M._defaults = {
|
|||||||
temperature = 0,
|
temperature = 0,
|
||||||
max_tokens = 8000,
|
max_tokens = 8000,
|
||||||
},
|
},
|
||||||
---@type AvanteSupportedProvider
|
|
||||||
["ollama"] = {
|
|
||||||
__inherited_from = "openai",
|
|
||||||
model = "myDeepseek7b",
|
|
||||||
timeout = 30000, -- Timeout in milliseconds
|
|
||||||
temperature = 0,
|
|
||||||
max_tokens = 8000,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
---Specify the special dual_boost mode
|
---Specify the special dual_boost mode
|
||||||
---1. enabled: Whether to enable dual_boost mode. Default to false.
|
---1. enabled: Whether to enable dual_boost mode. Default to false.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user