Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/en/configuration/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ base_url = "https://api.openai.com/v1"
api_key = "sk-xxx"
```

For a custom OpenAI-compatible service, set `base_url` to the API root (for example, `https://gateway.example/v1`), not an individual request path such as `/chat/completions`. Set the model's `model` field to an ID accepted by the service. For `openai_legacy` and `openai_responses` providers, non-empty `OPENAI_BASE_URL` and `OPENAI_API_KEY` environment variables override the corresponding configuration fields; see [Environment variables](./env-vars.md).

### `anthropic`

For connecting to Anthropic Claude API.
Expand Down
2 changes: 2 additions & 0 deletions docs/zh/configuration/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ base_url = "https://api.openai.com/v1"
api_key = "sk-xxx"
```

配置自定义 OpenAI 兼容服务时,`base_url` 应填写 API 根地址(例如 `https://gateway.example/v1`),不要填写 `/chat/completions` 等具体请求路径。模型配置中的 `model` 应使用服务端接受的模型 ID。对于 `openai_legacy` 和 `openai_responses` 供应商,非空的 `OPENAI_BASE_URL` 和 `OPENAI_API_KEY` 环境变量会覆盖对应配置项,详见[环境变量](./env-vars.md)。

### `anthropic`

用于连接 Anthropic Claude API。
Expand Down
Loading