From aa274ee92736aba7043bd110a4b42371b7134307 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 3 Jun 2025 12:00:20 +0800 Subject: [PATCH] fix(docs): remove legacy provider config (#2122) --- README.md | 18 ++++++++++-------- README_zh.md | 17 +++++++++-------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 7ed9a6a..e7f08a8 100644 --- a/README.md +++ b/README.md @@ -335,7 +335,7 @@ _See [config.lua#L9](./lua/avante/config.lua) for the full config_ endpoint = "https://api.anthropic.com", model = "claude-3-5-sonnet-20241022", extra_request_body = { - temperature = 0, + temperature = 0.75, max_tokens = 4096, }, }, @@ -740,14 +740,14 @@ ollama is a first-class provider for avante.nvim. You can use it by setting `pro ```lua provider = "ollama", -ollama = { - model = "qwq:32b", +providers = { + ollama = { + endpoint = "http://localhost:11434", + model = "qwq:32b", + }, } ``` -> [!NOTE] -> If you use ollama, the code planning effect may not be ideal, so it is strongly recommended that you enable [cursor-planning-mode](https://github.com/yetone/avante.nvim/blob/main/cursor-planning-mode.md) - ## AiHubMix [AiHubMix](https://s.kiiro.ai/r/PPELHy) is a built-in provider for avante.nvim. You can register an account on the [AiHubMix official website](https://s.kiiro.ai/r/PPELHy), then create an API Key within the website, and set this API Key in your environment variables: @@ -760,8 +760,10 @@ Then in your configuration, set `provider = "aihubmix"`, and set the `model` fie ```lua provider = "aihubmix", -aihubmix = { - model = "gpt-4o-2024-11-20", +providers = { + aihubmix = { + model = "gpt-4o-2024-11-20", + }, } ``` diff --git a/README_zh.md b/README_zh.md index 1d1e68b..d1ce8ad 100644 --- a/README_zh.md +++ b/README_zh.md @@ -318,7 +318,7 @@ _请参见 [config.lua#L9](./lua/avante/config.lua) 以获取完整配置_ endpoint = "https://api.anthropic.com", model = "claude-3-5-sonnet-20241022", extra_request_body = { - temperature = 0, + temperature = 0.75, max_tokens = 4096, }, }, @@ -704,14 +704,13 @@ ollama 是 avante.nvim 的一流提供者。您可以通过在配置中设置 `p ```lua provider = "ollama", -ollama = { - model = "qwq:32b", +providers = { + ollama = { + model = "qwq:32b", + }, } ``` -> [!NOTE] -> 如果您使用 ollama,代码规划效果可能不理想,因此强烈建议您启用 [cursor-planning-mode](https://github.com/yetone/avante.nvim/blob/main/cursor-planning-mode.md) - ## AiHubMix [AiHubMix](https://s.kiiro.ai/r/PPELHy) 是 avante.nvim 的内置提供者。您可以在 [AiHubMix 官方网站](https://s.kiiro.ai/r/PPELHy) 上注册一个帐户,然后在网站内创建一个 API 密钥,并在环境变量中设置此 API 密钥: @@ -724,8 +723,10 @@ export AIHUBMIX_API_KEY=your_api_key ```lua provider = "aihubmix", -aihubmix = { - model = "gpt-4o-2024-11-20", +providers = { + aihubmix = { + model = "gpt-4o-2024-11-20", + }, } ```