v0.2.9

t8y2/dbxv0.2.9Sep 28, 2026by github-actions[bot]

Upgrading?

AI Summary

Sub2API 0.2.9 enhances stability and billing accuracy with glob support for model whitelists and fixes compatibility issues with OpenAI, Anthropic, and Antigravity APIs.

Key Highlights

  • Model group whitelist now supports glob pattern matching.
  • OpenAI compatibility fixes for beta responses and thinking modes.
  • Billing accuracy improvements including context gating and alias handling.
  • Gateway client disconnection handling standardized.
  • UI countdown display for usage reset times.

New Features

  • Glob pattern matching for model whitelists
  • Enhanced OpenAI compatibility (Responses, thinking)
  • Billing accuracy improvements
  • Gateway client disconnection handling

Full Release Notes

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

本版本以稳定性与计费准确性修复为主,覆盖 Anthropic、OpenAI/Codex、Antigravity 等多个上游的兼容性问题;模型分组白名单新增通配符位置匹配。

## 新增功能

- 模型分组白名单支持通配符位置匹配(glob)

## 优化改进

- OpenAI 透传账号可补充模型发现,不再隐藏已映射的模型
- 自动重置额度:跳过已确认无额度的账号,并在查询失败后自动退避
- 安装向导移除过时的限流默认配置
- Redis 启动命令改用 exec 列表形式,改善容器优雅关闭

## Bug 修复

- Anthropic:保留请求中的结构化输出 beta 头
- OpenAI 桥接:尊重客户端禁用 thinking 的设置
- OpenAI:保留 Responses 多智能体 beta;上下文 rollover 时断开 websocket 链
- OpenAI:探测模型缺失时保持 Responses 支持状态未知;alpha search 回退需成功完成后才计费
- OpenAI 额度暂停保留到已知的未来重置时间;自动重置字段保留在调度器投影中
- apicompat:将 GPT-5 及以后代际统一识别为推理模型;最终输出消息为空时恢复流式文本;保留 content_block_start 上发送的工具参数;转换的角色项正确标记为 messages
- Antigravity:MALFORMED_FUNCTION_CALL 导致空流时触发 failover 重试;转发聊天 PDF 为 Gemini inlineData;保留工具 schema 的 string const 约束;有意义数据检查排除仅 Signature 事件
- OpenCode Zen 上游注入 DeepSeek reasoning 占位符
- 计费:识别 OpenRouter Claude Opus 5.5 别名;账号统计定价遵守长上下文门控;渠道未设价时继承目录图片价;模型广场应用独立视频计费倍率;Free Fast 无定价时保留零成本用量日志
- 网关:客户端断开统一标记为 499,不再被误记为 502/200 上游错误
- UI:空闲用量窗口在有已知重置时间时显示倒计时;分组模态框清理监听器与挂起的搜索
- ccswitch:修复 usage 查询请求 /v1/v1/usage 的路径重复;保留 Codex provider 根端点
- Windows 下 Codex 模型目录路径使用 ~/



---

## 📥 Installation

**Docker:**
```bash
# Docker Hub
docker pull weishaw/sub2api:0.2.9

# GitHub Container Registry
docker pull ghcr.io/wei-shaw/sub2api:0.2.9
```

**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