Skip to content

Sub2API 0.1.188

Choose a tag to compare

@github-actions github-actions released this 05 Sep 08:27
· 20 commits to main since this release

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

  • Complete gpt-6-astra sampling-parameter compatibility, including account aliases and Responses-shaped Chat Completions requests.

  • Enable stable Astra prompt-cache keys and Messages-to-Responses continuation without changing older model behavior.

  • Bill HTTP and WebSocket requests using the actual upstream service tier, with post-policy request fallback and isolated per-turn metadata.

  • Preserve billable partial-stream usage, reasoning and image metadata; retryable and policy-blocked requests remain unbilled.

  • Full local backend unit and database integration tests passed; golangci-lint reported 0 issues.

  • Frontend: 236 test files and 1,644 tests passed, together with type checking, lint and production build.

  • Isolated Docker acceptance verified exact and alias routing, all three API forms, cache continuation, Standard/Fast/Flex charges, long-context cache-write billing and balance reconciliation with a controlled mock upstream.

  • Existing model prices and database schema are unchanged.


📥 Installation

Docker:

# Docker Hub
docker pull forever94yu/sub2api:0.1.188

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