Skip to content

Sub2API 0.1.79.1

Choose a tag to compare

@github-actions github-actions released this 11 Feb 05:16
· 556 commits to main since this release

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

  • 新增 OnboardUser API 客户端方法,支持账号 onboarding 获取 project_id
  • loadProjectIDWithRetry 增加 onboard 回退:LoadCodeAssist 未返回 project_id 时自动触发 onboarding
  • GetAccessToken 中 project_id 补齐改用轻量 FillProjectID 替代全量 RefreshAccountToken
  • 补齐逻辑增加 5 分钟冷却机制,防止频繁重试
  • OnboardUser 轮询等待改为 context 感知,支持提前取消
  • 提取 mergeCredentials 辅助方法消除重复代码
  • 新增 extractProjectIDFromOnboardResponse 和 resolveDefaultTierID 单元测试

📥 Installation

Docker:

# Docker Hub
docker pull edricli7/sub2api:0.1.79.1

# GitHub Container Registry
docker pull ghcr.io/edric-li/sub2api:0.1.79.1

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/Edric-Li/sub2api/main/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation