From b8c58880799e9fe37cc7ce43d731c4152e25db9a Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 28 Jan 2025 02:05:41 +0800 Subject: [PATCH] fix(avante): integrate avante.nvim using the latest solution --- docs/avante.nvim/README.md | 18 ++++++++---------- docs/avante.nvim/README_cn.md | 18 ++++++++---------- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/docs/avante.nvim/README.md b/docs/avante.nvim/README.md index 1b350d5..71860ee 100644 --- a/docs/avante.nvim/README.md +++ b/docs/avante.nvim/README.md @@ -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` diff --git a/docs/avante.nvim/README_cn.md b/docs/avante.nvim/README_cn.md index 3ada845..40f19bf 100644 --- a/docs/avante.nvim/README_cn.md +++ b/docs/avante.nvim/README_cn.md @@ -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`