fix: Codex 端点 URL 使用 /responses 而非 /v1/responses

Codex OAuth 端点(chatgpt.com/backend-api/codex)不走标准 /v1 前缀,之前 build_provider_url() 统一使用 /v1/responses 导致 404 错误。

修改内容:
- transport.py: build_provider_url() 对 Codex URL 做特判,使用 /responses
- EndpointFormDialog.vue: placeholder 对 Codex 端点显示正确路径
- guide-config.ts: 文档说明两种路径格式
This commit is contained in:
AAEE86
2026-02-05 09:48:37 +08:00
parent 9c19a72d67
commit fecf48e180
3 changed files with 31 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ export const apiFormats = [
},
{
name: 'OpenAI CLI',
endpoint: '/v1/responses',
endpoint: '/v1/responses (Codex: /responses)',
auth: 'Authorization: Bearer xxx',
clients: ['Codex CLI']
},