diff --git a/README.md b/README.md index 229383a..64ab0c0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# ChatGPT Session to CPA / sub2api +# ChatGPT Session to CPA / sub2api / Cockpit -纯前端单页面工具,用来把 ChatGPT Web 登录 session JSON 转换成 CPA 或 sub2api 可导入 JSON。 +纯前端单页面工具,用来把 ChatGPT Web 登录 session JSON 转换成 CPA、sub2api 或 Cockpit Tools 可导入 JSON。 ## 在线使用 @@ -40,6 +40,7 @@ Plus 号可以用此方式导入中转站使用;Free 号的 access token 不 - `CPA`:生成 Codex CPA auth JSON,包含 `type: "codex"`、`access_token`、`session_token`、`id_token`、`email`、`account_id`、套餐和过期时间等字段;缺少真实 `id_token` 时会根据 session 与 access token claims 构造 CPA 可解析的占位 claims。 - `sub2api`:生成参考 `CPA2sub2API` 项目的 `exported_at/proxies/accounts` 结构,账号平台为 `openai`,类型为 `oauth`。 +- `Cockpit`:生成 Cockpit Tools Codex JSON 导入可识别的扁平 token 格式,包含 `id_token`、`access_token`、`refresh_token`、`account_id`、`email`、`expired` 等字段。 ChatGPT Web session 通常不包含 CPA OAuth 文件里常见的 `refresh_token`,因此 access token 过期后不能自动刷新。 ## 本地使用 diff --git a/docs/index.html b/docs/index.html index 07e5d67..b3be453 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@
-