v0.2.15
Wei-Shaw/sub2apiv0.2.15Oct 9, 2026by github-actions[bot]
Upgrading?
AI Summary
This release introduces support for Cline and Command Code platforms and unifies platform management logic to be driven by a platform manifest. It also resolves numerous protocol conversion, billing, and frontend race condition issues.
Key Highlights
- Added support for Cline and Command Code platforms with new billing and routing capabilities.
- Unified platform list, account forms, and forwarding logic to be driven by a platform manifest.
- Fixed a wide range of protocol conversion bugs, billing inconsistencies, and frontend race conditions.
Breaking Changes
- Platform list, account forms, and forwarding/probing logic are now unified to be driven by a platform manifest.
New Features
- Added Cline platform support (subscription models and points billing).
- Added Command Code platform support (automatic routing to Anthropic/Responses/Chat Completions).
- Usage page defaults to displaying single-request output TPS.
- Ops monitoring dashboard now includes output TPS percentiles.
- Account management page search and filter bar updated to a compact layout.
Full Release Notes
> AI API Gateway Platform - 将 AI 订阅配额分发和管理 新增 Cline 与 Command Code 两个上游平台;平台列表、多协议转发与账号表单统一改由平台清单驱动,同时集中修复一批协议转换、计费与前端竞态问题。 ## 新增功能 - 新增 Cline 平台:支持 ClinePass 订阅(5 小时 / 7 天 / 30 天额度)与积分计费,ClinePass 账号连接测试优先使用订阅模型 - 新增 Command Code 平台:按模型自动分流到 Anthropic / Responses / Chat Completions,并按上游模型目录对支持的协议直通 - 用量页默认展示单请求输出 TPS,运维监控新增输出 TPS 分位数 - 账号管理页搜索与筛选栏改为紧凑布局 ## 优化改进 - 平台列表、多协议账号表单与转发/探测逻辑统一由平台清单驱动,后续新增平台无需再写数据库约束迁移 - 前端按平台能力展示模型同步入口 - Responses 命名空间剥离改为仅在需要时重建输入,降低请求处理开销 - 长上下文倍率徽标替换为更准确的展示 ## Bug 修复 - 修复多协议供应商 Claude 模型计费与钱包冷却问题,并隔离各账号的模型目录缓存 - 修复 Responses WebSocket 长连接后续轮次不使用最新分组价格计费的问题 - 修复 WS 透传模式下图片输入用量未计入的问题 - 修复 /v1/responses 转 Anthropic 时带首尾空白的模型名导致计费模型名不一致的问题 - 修复 OAuth 历史回放 web_search_call 时未声明 web_search 工具导致上游报错的问题(含 Responses Lite) - 修复上游拒绝加密 reasoning 签名后请求失败的问题,现可自动恢复 - 修复 Anthropic thinking 块缺少 signature 字段导致严格客户端(如 Grok Build)解析失败的问题 - 修复 Chat ↔ Responses 协议转换问题:developer 角色被改写、具名 tool_choice 未展平、旧版 function_call 与结果未配对、refusal 内容丢失 - 修复缓冲式 Anthropic 路径遇到负数内容块索引时的异常 - 修复 Chat 流式响应心跳注释被丢弃的问题 - 修复 Anthropic 拟态路径缓存 TTL 顺序不合法、tool change beta 头被丢弃的问题 - 修复 Grok Responses 流静默拒答(空 response.completed)不触发故障转移的问题 - 修复 Grok SSO 设备授权缺少 consent token 与 origin 的问题 - 修复 OpenCode Zen qwen3.8-max 端点错误、不支持模型未拒绝,以及 Retry-After 过长与 403 用量快照误报的问题 - 修复 Codex 模型清单可能下发 null service_tiers 的问题 - 修复远程 Codex 模型发现未遵守账号模型映射的问题 - 修复组合分组精确路由别名未出现在模型列表、基础分组更新后组合目录隔离失效的问题 - 修复 Antigravity 账号测试未展示映射后模型的问题 - 修复渠道追加模型时改写已留空价格条目的问题 - 修复内嵌前端将 /chat/completions、/embeddings、/models/:model 等裸 API 别名错误返回为页面的问题 - 修复渠道监控在无请求样本时仍计算健康分、智谱探测 URL 未使用配置端点的问题 - 修复账号连接测试失败日志缺少账号归属信息的问题 - 修复运维告警:规则时长未限制为整分钟、设置未加载完即可保存、筛选切换后残留旧分页数据 - 修复价格缩放后指数被截断、用户倍率为 0 时费用明细显示错误、亚字节吞吐量单位丢失的问题 - 修复批量修改用户限额时错误提示不规范、公告已读确认失败时误报成功的问题 - 修复多处前端竞态:离开页面后 Stripe / Airwallex 支付回调与轮询继续执行、备份轮询导航后重启、过期请求响应覆盖当前数据(自定义页面、清理任务、监控模板、定时测试结果、分组倍率、插件配置会话等) - 修复个人资料保存时用户名编辑与邮箱绑定草稿被覆盖、通知邮箱验证码计时异常的问题 - 修复 RPM 覆写编辑时数值丢失、透传规则启用状态读取错误的问题 - 修复二次验证并发弹窗重复、合规状态重置串扰、OAuth 验证码冷却在组件卸载后启动的问题 - 修复 Esc 键会关闭所有弹窗(现仅关闭最上层)、选择器禁用后未自动收起的问题 - 修复批量生图访问查询失败后无法重试的问题 --- ## 📥 Installation **Docker:** ```bash # Docker Hub docker pull weishaw/sub2api:0.2.15 # GitHub Container Registry docker pull ghcr.io/wei-shaw/sub2api:0.2.15 ``` **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,060
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