v0.1.178

Wei-Shaw/sub2apiv0.1.178Aug 18, 2026by github-actions[bot]

AI Summary

The release adds support for Kimi, DeepSeek, and Zhipu vendors, introduces quota mode for channel monitoring, and implements peak/off-peak pricing. It also improves Grok usage tracking and OpenAI Team account management.

Key Highlights

  • New vendor support for Kimi, Zhipu GLM, and DeepSeek with full routing and monitoring.
  • Channel monitoring now supports a quota snapshot mode.
  • Token billing channels can now be configured with peak/off-peak price multipliers.
  • OpenAI Team account circuit breakers added.
  • Grok usage bars now show 24h/7d/30d aggregations.

New Features

  • Kimi/Zhipu/DeepSeek vendor support.
  • Channel monitoring quota mode.
  • Peak/off-peak pricing.
  • OpenAI Team circuit breaker.
  • Grok usage bars.
  • Ollama usage query support.
  • Ops error details time range selector.

Full Release Notes

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

新增支持 Kimi/智谱/DeepSeek 供应商,渠道监控新增配额模式,渠道模型支持谷峰定价。

## 新增功能

- 新增 Kimi/智谱/DeepSeek 供应商支持:多协议接入,含分组创建入口、渠道定价与配额/余额监控
- 渠道监控配额模式:监控检查可切换为配额快照模式,覆盖 8 个平台,新增公开开关(默认关闭)
- 渠道模型谷峰定价:token 计费渠道可按时段配置价格倍率
- OpenAI Team 账号联动熔断
- OpenAI 账号批量设置
- Grok 用量条补齐本站 24h/7d/30d 聚合
- Ollama 账号支持用量查询
- Ops 错误详情弹窗支持自定义时间区间

## 优化改进

- 统一 Codex OAuth 出站身份:凭据面与真实客户端对齐,消除模型版本漂移
- 透传 WS 二进制帧纳入策略链(模型映射、安全审计等此前仅覆盖文本帧)
- 透传会话的谷峰倍率取值时刻从记录时刻改为 turn 开始时刻
- 仪表盘 Token 卡片明细纳入缓存 token
- 原生表单控件适配暗色模式
- Ops 错误分布图例显示分类标签;SLA 卡片在空窗口时显示中性状态而非误报
- OpenAI Fast/Flex 策略规则说明优化;公告列表空状态文案优化

## Bug 修复

- 修复 OpenAI 自定义工具在 WS-HTTP 桥接与 API-key 路径下丢失的问题
- 修复 Codex 额度探针模型兼容性问题
- 修复邀请码并发注册竞争问题:邀请码消费与用户创建原子化
- 修复 Kimi/智谱/DeepSeek 分组的调度闸门、计费、断开漏记、count_tokens、403 处理五项缺陷
- 修复 Gemini includeServerSideToolInvocations 参数丢失及 Antigravity 混合工具配置被破坏的问题
- 修复 Gemini 上游 4xx 错误被硬改为 500 的问题
- 修复透传账号模型发现不对齐的问题
- 修复 Anthropic SSE 过载错误未正确处理的问题
- 修复认证快照丢失分组定价的问题
- 修复 Claude 顶层 deferred tools 不支持及其 cache_control 处理问题
- 修复未配置 SMTP 时仍尝试发送到期提醒的问题
- 修复 Ops 批量写入失败后退化为单条插入的问题
- 修复账号助手数据加载相互干扰的问题
- 修复 Grok 预付费/用量为空时仍显示的问题,以及 Grok 响应模型审计别名不一致
- 修复多处 i18n 缺失/误引(代理列表过期状态、Kimi/智谱/DeepSeek 余额单元格、顶栏角色标签)



---

## 📥 Installation

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

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

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