Skip to content

Sub2API 0.2.21

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:54
· 531 commits to codex/my-feature since this release

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