mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
docs: 更新codex配置示例[skip ci]
This commit is contained in:
10
README.md
10
README.md
@@ -429,16 +429,24 @@ preferred_auth_method = "apikey"
|
|||||||
name = "crs"
|
name = "crs"
|
||||||
base_url = "http://127.0.0.1:3000/openai" # 根据实际填写你服务器的ip地址或者域名
|
base_url = "http://127.0.0.1:3000/openai" # 根据实际填写你服务器的ip地址或者域名
|
||||||
wire_api = "responses"
|
wire_api = "responses"
|
||||||
|
requires_openai_auth = true
|
||||||
|
env_key = "CRS_OAI_KEY"
|
||||||
```
|
```
|
||||||
|
|
||||||
在 `~/.codex/auth.json` 文件中配置API密钥:
|
在 `~/.codex/auth.json` 文件中配置API密钥:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"OPENAI_API_KEY": "你的后台创建的API密钥"
|
"OPENAI_API_KEY": null
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
环境变量设置:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export CRS_OAI_KEY="后台创建的API密钥"
|
||||||
|
```
|
||||||
|
|
||||||
### 5. 第三方工具API接入
|
### 5. 第三方工具API接入
|
||||||
|
|
||||||
本服务支持多种API端点格式,方便接入不同的第三方工具(如Cherry Studio等)。
|
本服务支持多种API端点格式,方便接入不同的第三方工具(如Cherry Studio等)。
|
||||||
|
|||||||
Reference in New Issue
Block a user