Skip to content

Sub2API 0.1.201

Choose a tag to compare

@github-actions github-actions released this 06 Oct 14:03
· 5 commits to main since this release

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

This release closes three billing gaps in completed-request settlement, persistent WebSocket sessions, and Live calls.

  • Preserve balance and subscription charges when an API key is deleted before completed usage is settled. Other database failures still roll back the transaction, and duplicate settlement remains idempotent.
  • Recheck key validity, user and group access, balance, subscription limits, and key limits before each additional WebSocket turn. Complete the preceding settlement before admitting the next turn, including passthrough connections and disconnect cleanup. Reject ambiguous event-type envelopes before routing.
  • Preserve API key quota and rate-limit metadata for Live calls, and apply the same key accounting and cache invalidation used by other billable requests. Existing Live records remain compatible.
  • Update Axios to 1.20.0, Vue to 3.5.42, and source-map-js to 1.2.2 for dependency security fixes.
  • Keep all 210 bundled model pricing entries unchanged from v0.1.200. No database schema migration is required.

Validation completed before publication:

  • Full local backend unit and integration suites, golangci-lint, and govulncheck passed. The 202 focused regression tests also passed under the Linux race detector.
  • Frontend lint, production build, and all 1684 tests passed. The existing dependency-audit exception policy was preserved.
  • Native application acceptance passed 119 billable requests and four no-charge rejections. The Linux container candidate passed another 22 checks. PostgreSQL usage, balance, API key quota, and account quota records reconciled exactly.
  • All 210 model pricing entries remain byte-identical to v0.1.200. No production provider traffic was used in these tests.

Docker Hub: docker pull forever94yu/sub2api:0.1.201


📥 Installation

Docker:

# Docker Hub
docker pull forever94yu/sub2api:0.1.201

One-line install (Linux):

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

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

📚 Documentation