fix(docs): remove legacy provider config (#2122)

This commit is contained in:
yetone
2025-06-03 12:00:20 +08:00
committed by GitHub
parent c8b075333f
commit aa274ee927
2 changed files with 19 additions and 16 deletions

View File

@@ -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",
},
}
```

View File

@@ -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",
},
}
```