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,
version = false, -- set this if you want to always pull the latest change
opts = {
provider = "openai",
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
openai = {
endpoint = "https://api.deepseek.com/v1",
model = "deepseek-chat",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
-- optional
api_key_name = "OPENAI_API_KEY", -- default OPENAI_API_KEY if not set
provider = "deepseek",
vendors = {
deepseek = {
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
model = "deepseek-coder",
},
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`

View File

@ -25,16 +25,14 @@ return {
lazy = false,
version = false, -- set this if you want to always pull the latest change
opts = {
provider = "openai",
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
openai = {
endpoint = "https://api.deepseek.com/v1",
model = "deepseek-chat",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 4096,
-- optional
api_key_name = "OPENAI_API_KEY", -- default OPENAI_API_KEY if not set
provider = "deepseek",
vendors = {
deepseek = {
__inherited_from = "openai",
api_key_name = "DEEPSEEK_API_KEY",
endpoint = "https://api.deepseek.com",
model = "deepseek-coder",
},
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`