Skip to content

Releases

Sub2API 0.2.27

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:45

AI API Gateway Platform - 将 AI 订阅配额分发和管理

修复 OpenAI 上游请求超时后的故障切换,以及 Codex 文献搜索返回 403 时误停用 OAuth 账号的问题。补全模型策略和计费请求校验,优化大请求的内存占用。模型广场支持复制模型 ID。

Docker 部署可在管理后台检查更新,并通过宿主升级助手升级到 0.2.27。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.27

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.27/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.26

Choose a tag to compare

@github-actions github-actions released this 19 Nov 04:02

AI API Gateway Platform - 将 AI 订阅配额分发和管理

包含上游 v0.2.22 与 v0.2.23。新增 GPT-6.2 Astra、Sol 模型配置及分组 Ultra Fast,补齐渠道倍率设置和分组提示。优化首个有效输出前的流式故障切换、空闲计时和缓冲,并整合 Gemini、Grok 与费用统计更新。模型和档位可用性取决于上游账号。

包含数据库迁移。管理员通过后台版本面板点击更新,沿用宿主升级助手的备份与镜像校验。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.26

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.26/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.25

Choose a tag to compare

@github-actions github-actions released this 12 Nov 08:42

AI API Gateway Platform - 将 AI 订阅配额分发和管理

对照 OpenAI Codex rust-v0.167.2 修正网关转发差异,保留后台 Docker 在线升级。

  • 默认保留受支持 CLI、TUI、VS Code、Desktop 的实际客户端版本、系统与终端信息,按 UA 配对 originator/version;自动同步版本不再覆盖真实客户端构建。
  • HTTP 普通转发与透传补齐 session-id、thread-id、x-client-request-id,在账号/用户隔离后保留线程与请求 ID 的原有对应关系。
  • 尊重客户端未声明 beta features 的选择;显式能力声明与原生 compaction_trigger 协商保持兼容。
  • 增加四类客户端、四类传输入口和完整 Forward 请求语义的回归测试,覆盖推理参数、工具输入输出及客户端版本保留。
  • 未改变作者重试策略、账号设置、数据库结构和宿主升级助手协议。发布不自动切换生产,由用户后台点击更新。

这次修复协议兼容性差异,不代表完全模拟官方网络指纹,也不保证消除上游 overloaded、限流或模型路由差异。管理员显式 UA/ForceCodexCLI 覆写仍然优先,账号鉴权和跨用户会话隔离继续生效。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.25

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.25/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.24

Choose a tag to compare

@github-actions github-actions released this 11 Nov 09:13

AI API Gateway Platform - 将 AI 订阅配额分发和管理

合入 Wei-Shaw/sub2api 530c5e3(作者 0.2.21),保留自有后台 Docker 在线升级。

  • 修复工具循环会话标识、WebSocket 后续轮次首帧重放、搜索激活前池连接重建和 Codex Desktop 页面上下文兼容。
  • 完善过载重试、模型冷却规则及推理参数校验,重试策略统一对齐上游,取消自有容量错误立即换号。
  • 新增 Claude Fable / Mythos 5.2 支持与兜底定价;修复缓存 TTL 计费、Fast 倍率、刷新令牌原子轮换和充值倍率精度。
  • 请求体默认内存预算按有效内存上限自动调整;优化 API 密钥列表与账号配额刷新。
  • 新增用量覆盖索引及缓存写入 TTL 字段迁移。更新助手先备份数据库;镜像回退不等于数据库回滚。
  • 自有发行源、版本一致性校验、宿主升级助手协议与外发标识处理保持兼容。用户在后台点击升级,不自动修改生产账号配置。
  • 同步 Go 1.27.4 安全补丁,修复 HTTP/1 MaxBytesReader 标准库竞态崩溃漏洞。

📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.24

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.24/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.23

Choose a tag to compare

@github-actions github-actions released this 09 Nov 02:24

AI API Gateway Platform - 将 AI 订阅配额分发和管理

合入 Wei-Shaw/sub2api 6b4b37d(作者 0.2.20),自有版本独立递增。

  • 修复长会话 cyber transcript 误拦;改进请求体空闲超时、断连错误分类、网关资源限制和 JSON 热路径性能。
  • 完善 GPT-6.1 Terra 参数、Codex 模型描述与订阅长上下文计费;改进 Codex 配置导出及 WebSocket HTTP 桥接。
  • 新增 GPT Image 2.6 与图片尺寸档位分流,修复 Gemini 工具媒体、响应内容及缓冲推理内容保留。
  • 增加注册邮箱黑名单,完善管理员 API 密钥权限与用量导出。
  • 保留自有发行源、后台 Docker 一键更新、宿主助手协议、搜索历史兼容、外发标识处理与容量错误跨账号重试。
  • 此次无新增 SQL 迁移;不自动修改生产账号或 MCP 设置。部署由用户在后台点击更新。

📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.23

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.23/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.22

Choose a tag to compare

@github-actions github-actions released this 01 Nov 14:27

AI API Gateway Platform - 将 AI 订阅配额分发和管理

  • 新增管理 MCP、OAuth 授权码/S256 PKCE、个人与管理员工具目录、连接撤销、审计和限流。
  • 新增迁移 249;MCP 默认关闭,只有显式配置 MCP_PUBLIC_URL 才启用。
  • 同步 MCP Go SDK 安全更新、客户端注册无状态化、长客户端 ID 截断、GPT/i18n 与依赖安全修复。
  • 保留自有宿主 updater、版本面板和自有发行源;生产升级由管理员后台点击。

安装脚本固定版本:https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.22/deploy/install.sh


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.22

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.22/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.21

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:54

AI API Gateway Platform - 将 AI 订阅配额分发和管理

  • 新增 GPT-6.1 Terra 支持;修复 OAuth 非流式 Responses 返回格式、缺失 Content-Type 的 SSE 识别与 incomplete/cancelled JSON 返回。
  • Grok 模型目录同步、映射差异诊断和响应模型审计。
  • Gemini 同账号重试可配置、模型列表及缓存请求修复;国产 Coding Plan 频率型 429 秒级冷却。
  • 图片按实际出图数量计费开关、DeepSeek 缓存计费、OpenCode 角色与工具调用兼容修复,依赖安全更新。

Docker 管理员可在版本面板点击升级;镜像、程序与后台版本保持一致,升级助手会先备份数据库。生产切换由用户执行。
新增迁移 248:groups.image_count_billing 默认 false,不自动开启按张计费。切回旧镜像不等于数据库恢复。

安装脚本固定版本:https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.21/deploy/install.sh

补充安全修复:vue-i18n 与消息编译器升级到 11.4.16,修复 GHSA-83rm-6c8r-g728;保留原中英文界面和语言加载流程。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.21

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.21/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.20

Choose a tag to compare

@github-actions github-actions released this 25 Oct 13:14

AI API Gateway Platform - 将 AI 订阅配额分发和管理

  • Codex overload:CLI 身份配对、空流安全重试,以及 queued/metadata 后继续允许安全故障转移;不承诺消除所有上游过载。
  • 受限管理员 API 密钥:按操作和资源范围授权。
  • 调度快照、账号模型映射与配额累加性能优化;Vertex 配额、Cloudflare 1010 处理、兼容流结束/计费、工具参数与生图修复。
  • Go 1.27.3、DOMPurify 3.4.17 等依赖安全更新。

已安装 0.2.18/0.2.19 宿主助手的 Docker 部署可从管理员版本面板点击升级。通过固定版本镜像重建,保持镜像、程序和后台版本一致;会先备份数据库。

含迁移 246(开启已有 gemini/antigravity 分组生图开关,不影响 composite)和 247(受限管理员密钥表)。有迁移时,切回旧镜像不等于恢复数据库。

安装脚本固定版本:https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.20/deploy/install.sh


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.20

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.20/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.19

Choose a tag to compare

@github-actions github-actions released this 20 Oct 12:32

AI API Gateway Platform - 将 AI 订阅配额分发和管理

Includes OAuth composite route protection, workspace-aware Codex imports,
Responses created_at compatibility, API-key web search emulation, GPT-5.5
retirement handling, Gemini 4 Argon/thinking support, billing and payment fixes.

Retains fork release source, fixed-image host updater, search-history/compaction
compatibility and custom failover. No new database migrations in upstream diff.
Production deployment remains user-triggered from the admin version panel.


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.19

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.19/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Sub2API 0.2.18

Choose a tag to compare

@github-actions github-actions released this 14 Oct 08:00

AI API Gateway Platform - 将 AI 订阅配额分发和管理

恢复 Docker 部署的后台一键更新,并保证镜像标签、运行程序和后台版本一致。

  • 新增独立宿主更新服务,通过受限 Unix socket 接收管理员更新请求,不向应用暴露 Docker socket。
  • 自动核验正式发布、镜像来源和版本,备份数据库及 Compose,只重建应用容器。
  • 更新进度持久化,浏览器刷新与应用重启后恢复查询,成功后自动刷新页面。
  • 新版本校验失败时恢复旧镜像;数据库不会被自动覆盖,备份保留供人工恢复。
  • 保留裸二进制更新及未安装宿主服务时的手动 Docker 操作提示。

启用说明:宿主机运行 deploy/docker-updater/install.py 安装服务。旧容器首次需要按镜像升级到 0.2.18,之后可在后台点击在线更新。安装器使用运行容器的实际 Compose 配置及现有数据挂载。详情见 deploy/docker-updater/README.md。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ddaichicao/sub2api:0.2.18

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/DDAICHICAO/sub2api/v0.2.18/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation