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

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