mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-07-23 03:53:16 +08:00
feat(compute): 新增 ChatGPT 订阅 (Codex) Provider 预设 (#33)
自动检测客户端本地 Codex CLI 的 ChatGPT 订阅授权(~/.codex/auth.json),
以用户订阅额度调用 gpt-5.x/codex 模型,无需 API Key。
- compute/providers/openai-codex.json:accessMode=coding-plan +
credentialSource=codex-cli + apiFormat=openai-codex-responses,5 个模型,
enabled=false(由客户端检测器按本地凭证自动启用)
- schemas/provider.schema.json:frozen baseline 新增 credentialSource 字段
- manifest.json:presetDataVersion 59 → 60
⚠️ 发布顺序:本数据引入老客户端不识别的 credentialSource 字段。必须先发布带
compute.json 韧性(容忍未知字段)的客户端并等自动更新铺开,再合并本 PR——
否则更早的客户端合并时会因严格 schema 校验失败而停收所有预设更新。
This commit is contained in:
@@ -81,6 +81,11 @@
|
||||
"type": "string",
|
||||
"description": "品牌分组标识,UI 按此字段排序"
|
||||
},
|
||||
"credentialSource": {
|
||||
"type": "string",
|
||||
"enum": ["codex-cli"],
|
||||
"description": "凭证托管来源。codex-cli:密钥由客户端本地 Codex CLI 凭证检测器托管(读取 ~/.codex/auth.json 自动刷新写回,fresh token 同步 secrets.json)。需 requiredClientVersion ≥ 引入此字段的客户端版本——老客户端不识别本字段,必须先发版铺开 compute.json 韧性(容忍未知字段)再推送本数据"
|
||||
},
|
||||
"codingPlan": {
|
||||
"type": "object",
|
||||
"description": "Coding Plan / Token Plan 专属配置(仅当 accessMode = coding-plan 或 token-plan 时有效)",
|
||||
|
||||
Reference in New Issue
Block a user