github Wei-Shaw/sub2api v0.1.97
Sub2API 0.1.97

latest releases: v0.1.137, v0.1.136, v0.1.135...
3 months ago

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

  • AWS Bedrock 支持:新增 Bedrock 上游账号类型,支持 AWS 区域配置和签名认证

  • 用户消费排行榜:管理后台 Dashboard 新增用户消费排名视图

  • 分组倍率管理面板:分组管理新增独立的用户倍率编辑弹窗,支持批量调整和搜索

  • 兑换码支持订阅类型:create-and-redeem API 支持创建订阅类型兑换码

  • GPT 隐私模式:支持 GPT 账号数据不用于训练,前端展示隐私状态标识

  • 计费与用量日志解耦:billing 正确性不再依赖 usage_logs 批量写入,提升高并发下的计费可靠性

  • 用量日志批量写入优化,减少数据库写入压力

  • 计费幂等性和背压机制增强

  • Codex 转换兼容性修复

  • Docker 健康检查对齐运行时镜像

  • 文档新增 iframe 集成说明和生态项目章节

  • 修复 Gemini 模型因 SSE 终止标记被误加入 StopSequences 导致提前停止生成的问题

  • 修复 Dashboard 用户用量趋势图显示邮箱前缀而非用户名的问题

  • 修复 Dashboard 日期范围默认值不正确的问题

  • 修复管理员重置配额缺少 monthly 字段及 ristretto 缓存异步删除竞态问题

  • 修复账号导入时同步调用 disableOpenAITraining 导致网络超时失败的问题


📥 Installation

Docker:

# Docker Hub
docker pull weishaw/sub2api:0.1.97

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

One-line install (Linux):

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

Don't miss a new sub2api release

NewReleases is sending notifications on new releases.