diff --git a/README.md b/README.md index 7dbc6ff7..ec81b3d3 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,7 @@ console.log(await claudeResponse.json()); - gemini-2.5-pro - gemini-2.5-flash +- gemini-2.5-flash-lite - gpt-5 - claude-opus-4-1-20250805 - claude-opus-4-20250514 @@ -254,6 +255,9 @@ The server uses a YAML configuration file (`config.yaml`) located in the project | `debug` | boolean | false | Enable debug mode for verbose logging. | | `api-keys` | string[] | [] | List of API keys that can be used to authenticate requests. | | `generative-language-api-key` | string[] | [] | List of Generative Language API keys. | +| `codex-api-key` | object | {} | List of Codex API keys. | +| `codex-api-key.api-key` | string | "" | Codex API key. | +| `codex-api-key.base-url` | string | "" | Custom Codex API endpoint, if you use a third-party API endpoint. | | `claude-api-key` | object | {} | List of Claude API keys. | | `claude-api-key.api-key` | string | "" | Claude API key. | | `claude-api-key.base-url` | string | "" | Custom Claude API endpoint, if you use a third-party API endpoint. | @@ -310,6 +314,11 @@ generative-language-api-key: - "AIzaSy...02" - "AIzaSy...03" - "AIzaSy...04" + +# Codex API keys +codex-api-key: + - api-key: "sk-atSM..." + base-url: "https://www.example.com" # use the custom codex API endpoint # Claude API keys claude-api-key: diff --git a/README_CN.md b/README_CN.md index bef354c8..3fabb883 100644 --- a/README_CN.md +++ b/README_CN.md @@ -237,6 +237,7 @@ console.log(await claudeResponse.json()); - gemini-2.5-pro - gemini-2.5-flash +- gemini-2.5-flash-lite - gpt-5 - claude-opus-4-1-20250805 - claude-opus-4-20250514 @@ -271,6 +272,9 @@ console.log(await claudeResponse.json()); | `debug` | boolean | false | 启用调试模式以获取详细日志。 | | `api-keys` | string[] | [] | 可用于验证请求的API密钥列表。 | | `generative-language-api-key` | string[] | [] | 生成式语言API密钥列表。 | +| `codex-api-key` | object | {} | Codex API密钥列表。 | +| `codex-api-key.api-key` | string | "" | Codex API密钥。 | +| `codex-api-key.base-url` | string | "" | 自定义的Codex API端点 | | `claude-api-key` | object | {} | Claude API密钥列表。 | | `claude-api-key.api-key` | string | "" | Claude API密钥。 | | `claude-api-key.base-url` | string | "" | 自定义的Claude API端点,如果您使用第三方的API端点。 | @@ -328,11 +332,16 @@ generative-language-api-key: - "AIzaSy...03" - "AIzaSy...04" -# Claude API keys -claude-api-key: - - api-key: "sk-atSM..." # use the official claude API key, no need to set the base url +# Codex API 密钥 +codex-api-key: - api-key: "sk-atSM..." - base-url: "https://www.example.com" # use the custom claude API endpoint + base-url: "https://www.example.com" # 第三方 Codex API 中转服务端点 + +# Claude API 密钥 +claude-api-key: + - api-key: "sk-atSM..." # 如果使用官方 Claude API,无需设置 base-url + - api-key: "sk-atSM..." + base-url: "https://www.example.com" # 第三方 Claude API 中转服务端点 # OpenAI 兼容提供商 openai-compatibility: diff --git a/config.example.yaml b/config.example.yaml index 25c2d3ca..4281e24e 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -41,6 +41,11 @@ generative-language-api-key: - "AIzaSy...03" - "AIzaSy...04" +# Codex API keys +codex-api-key: + - api-key: "sk-atSM..." + base-url: "https://www.example.com" # use the custom codex API endpoint + # Claude API keys claude-api-key: - api-key: "sk-atSM..." # use the official claude API key, no need to set the base url