Repository navigation
Sub2API 0.1.129
·
4556 commits
to main
since this release
AI API Gateway Platform - 将 AI 订阅配额分发和管理
- Backend: dedicated Redis slot concurrency:image_account:{id} so image traffic
no longer competes with chat/responses quotas - Backend: per-instance channel-semaphore limiter with reject/queue modes;
release closure captures its own channel to avoid drift on capacity changes - Backend: ImagePool lease double-release protection via atomic.Bool CAS
- Backend: ImageGatewayRuntimeSettings (mode/max_queue_size/max_wait_seconds)
- GET/PUT /api/v1/admin/ops/runtime/image-gateway, with backward-compat fill
- Frontend: OpsSettingsDialog form section (mode select + queue fields)
- Frontend: OpsConcurrencyCard IMG x/max badge + cooldown indicator
- Tests: add AcquireImageAccountSlot/ReleaseImageAccountSlot to all
ConcurrencyCache mocks (testutil/stubs, concurrency_service_test,
openai_gateway_service_test, gateway_multiplatform_test,
gateway_handler_warmup_intercept_unit_test)
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
📥 Installation
Docker:
# GitHub Container Registry
docker pull ghcr.io/manyou116/sub2api:0.1.129One-line install (Linux):
curl -sSL https://raw.githubusercontent.com/manyou116/sub2api/main/deploy/install.sh | sudo bashManual download:
Download the appropriate archive for your platform from the assets below.