github ranxi2001/sub2api v2.7.5
Sub2API 2.7.5

latest releases: v2.19.7, v2.19.6, v2.19.5...
one month ago

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

本版修复 Codex ticket 的两类问题:开启「无票时暂停账号」后,有效票据仍被调度器误判为不可用;部分 Business 套餐返回的 332 字符票据被误当作个人号票据而丢弃。

修复内容

  • 有票账号被错误拦截:调度器在候选筛选前读取完整账号快照,补齐精简缓存中缺失的票据和身份字段。修复覆盖高级调度及旧版批量、非批量选择路径,并保留过期、撤销、身份匹配和最终数据库资格检查。
  • Business 套餐变体识别:支持 self_serve_business_prolite、self_serve_business_usage_based 等包含 Team、Business 或 Enterprise 标记的 plan_type,按 12 块、332 字符校验票据。个人套餐仍按 10 块、292 字符处理。
  • compact 请求的票据模型匹配:延后检查 compact 能力的调度路径,也会使用请求实际的 compact 标记解析出站模型,避免按错误模型检查票据。

升级提示

本版没有数据库迁移或配置默认值变更。「无票时暂停账号」仍默认关闭,已有采集分组和账号策略保持不变。开启该开关的部署,以及使用 Business 套餐变体账号的部署,建议升级。

补充了 Business 票据探针接受及请求头注入测试。合并后的后端单元测试、集成测试、票据专项 race 检查、lint 和构建已通过。

PR #7 · PR #8 · 完整版本对比


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/ranxi2001/sub2api:2.7.5

One-line install (Linux):

curl -fsSL https://raw.githubusercontent.com/ranxi2001/sub2api/v2.7.5/deploy/install.sh | sudo bash -s -- install -v v2.7.5

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

📚 Documentation

Don't miss a new sub2api release

NewReleases is sending notifications on new releases.