github Wei-Shaw/sub2api v0.1.77
Sub2API 0.1.77

latest releases: v0.1.130, v0.1.129, v0.1.128...
3 months ago

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

  • CRS 同步预览:支持从 CRS 预览账号后选择性同步,三步向导式操作

  • 分组拖拽排序:支持通过拖拽调整分组显示顺序

  • 客户端断连检测:流式传输时检测客户端断开并继续计费

  • 账号切换延迟:Antigravity 账号故障转移时增加线性延迟

  • 相同优先级账号随机化:防止并发请求时的雷同效应

  • Upstream 账号类型路由:AccountTypeUpstream 正确路由到 ForwardUpstream

  • 自定义错误码返回 500:当上游错误码不在配置列表时返回 500

  • 重构 scope 级别限流为 model 级别限流,简化账号调度算法

  • 统一 Antigravity 和 Gemini 的错误策略处理

  • 使用上游返回的 retryDelay 替代固定默认值

  • 重构 Trie 会话存储为扁平缓存结构

  • 修复 Gemini 原生请求格式的会话哈希生成

  • 混入会话上下文防止不同用户相同消息的哈希碰撞

  • 修复分组徽章在账号编辑页面未显示平台颜色的问题

  • 修复自定义错误码不匹配时仍触发限流的问题

  • 修复 Gemini 错误策略检查应在重试逻辑之前执行

  • 支持从操作菜单和临时取消调度中清除 model 级别限流

  • 修复 sticky session 故障转移时的缓存计费豁免

  • 修复 thoughtSignature 清理应用于所有客户端

  • 移除 Antigravity API Key 账户的冗余表单字段

  • 修复 TypeScript 类型检查错误


📥 Installation

Docker:

# Docker Hub
docker pull weishaw/sub2api:0.1.77

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

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.