Merge pull request #120 from yetone/fix/avante-docs

fix(avante): integrate avante.nvim using the latest solution
This commit is contained in:
Huang Panpan 2025-02-03 17:44:54 +08:00 committed by GitHub
commit 1708455a90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 20 deletions

View File

@ -25,16 +25,14 @@ return {
lazy = false, lazy = false,
version = false, -- set this if you want to always pull the latest change version = false, -- set this if you want to always pull the latest change
opts = { opts = {
provider = "openai", provider = "deepseek",
auto_suggestions_provider = "openai", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot vendors = {
openai = { deepseek = {
endpoint = "https://api.deepseek.com/v1", __inherited_from = "openai",
model = "deepseek-chat", api_key_name = "DEEPSEEK_API_KEY",
timeout = 30000, -- Timeout in milliseconds endpoint = "https://api.deepseek.com",
temperature = 0, model = "deepseek-coder",
max_tokens = 4096, },
-- optional
api_key_name = "OPENAI_API_KEY", -- default OPENAI_API_KEY if not set
}, },
}, },
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`

View File

@ -25,16 +25,14 @@ return {
lazy = false, lazy = false,
version = false, -- set this if you want to always pull the latest change version = false, -- set this if you want to always pull the latest change
opts = { opts = {
provider = "openai", provider = "deepseek",
auto_suggestions_provider = "openai", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot vendors = {
openai = { deepseek = {
endpoint = "https://api.deepseek.com/v1", __inherited_from = "openai",
model = "deepseek-chat", api_key_name = "DEEPSEEK_API_KEY",
timeout = 30000, -- Timeout in milliseconds endpoint = "https://api.deepseek.com",
temperature = 0, model = "deepseek-coder",
max_tokens = 4096, },
-- optional
api_key_name = "OPENAI_API_KEY", -- default OPENAI_API_KEY if not set
}, },
}, },
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true` -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`