v0.2.6
Wei-Shaw/sub2apiv0.2.6Sep 18, 2026by github-actions[bot]
Upgrading?
AI Summary
This release introduces Codex ticket collection and injection capabilities, significantly optimizes usage summary query performance, and includes various bug fixes and UI improvements.
Key Highlights
- Optimized usage summary query performance from 48.7s to 34ms.
- Added Codex ticket collection and injection for ChatGPT OAuth accounts.
- Implemented redemption record pagination for user history.
- Fixed DeepSeek responses and OpenAI affinity persistence issues.
New Features
- Codex ticket collection and injection with 1-hour validity.
- Codex ticket management toggle (default off).
- Configurable proxy for Codex ticket collection.
- Pagination support for redemption history.
- Antigravity model discovery in Gemini native list.
Full Release Notes
> AI API Gateway Platform - 将 AI 订阅配额分发和管理 新增 Codex x-codex-turn-state 票据采集与注入能力(默认关闭,管理端开关实时生效);分组用量汇总查询由全表扫优化为索引扫描,1721 万行实测 48.7s → 34ms。 ## 新增功能 - Codex 票据采集与注入:ChatGPT OAuth 账号可后台采集 292 位 x-codex-turn-state 票据,并在生产请求中复用,默认有效期 1 小时 - Codex 票据管理端开关:默认关闭,开启后实时生效无需重启;关闭时完全不采集也不注入 - Codex 票据采集代理:可单独配置采集代理地址,支持掩码返回与 URL 校验 - 兑换记录分页:用户兑换历史支持分页浏览 ## 优化改进 - 分组用量汇总(/admin/groups/usage-summary)不再全表扫 usage_logs,大数据量下响应从数十秒降至毫秒级 - 暂停调度的 OAuth 账号继续后台刷新令牌,避免配额探测误报“需要重新授权” - Antigravity 请求剥离 Claude 归属元数据,规避 429 - Gemini 原生模型列表可发现 antigravity 模型映射 - 对严格 Chat 上游归一化 developer 角色,提升兼容性 - 批量测试代理时复用进行中的测试,避免重复请求 - 账号导出与历史数据中清除私有票据信息 ## Bug 修复 - 修复 DeepSeek 原生 Responses 因工具输出含图片被拒绝的问题 - 修复 DeepSeek 并行 Responses 工具输出顺序错乱 - 修复客户端取消请求后 OpenAI 响应亲和性未持久化 - 修复 OpenAI manifest 重复解析、以及密钥校验被跳过的问题 - 修复订单页切换状态后分页未重置 - 修复支付配置被重复请求、金额输入非法值后文本丢失、退款余额提示基准错误 - 修复订阅状态清空后加载态未复位 - 修复注册页优惠码字段闪烁 - 修复 TOTP 设置输入与状态不同步、TOTP 错误信息未归一化显示 - 修复公告批量标记已读时丢失已成功的结果 - 修复剪贴板复制降级路径抛出的错误未上报 - 修复分页数字跳转输入处理 - 修复管理端可保存负数平台配额上限 - 修复模型标签输入为空时无法 Tab 切出 - 修复多实例下弹窗标题 ID 重复 --- ## 📥 Installation **Docker:** ```bash # Docker Hub docker pull weishaw/sub2api:0.2.6 # GitHub Container Registry docker pull ghcr.io/wei-shaw/sub2api:0.2.6 ``` **One-line install (Linux):** ```bash curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash ``` **Manual download:** Download the appropriate archive for your platform from the assets below. ## 📚 Documentation - [GitHub Repository](https://github.com/Wei-Shaw/sub2api) - [Installation Guide](https://github.com/Wei-Shaw/sub2api/blob/main/deploy/README.md)
Related Repositories
ollama/ollama★ 184,226
Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fatedier/frp★ 110,059
A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
infiniflow/ragflow★ 92,628
RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
gohugoio/hugo★ 90,199
The world’s fastest framework for building websites.
junegunn/fzf★ 83,715
:cherry_blossom: A command-line fuzzy finder