Sub2API Plus 0.2.7
Technical preview / 技术预览: 当前 0.2.x 仅用于开发、兼容性测试和隔离验收,未完成生产级安全、压力、容灾和回滚验证。请勿直接接入生产业务、真实付费用户、不可替代数据或高价值凭据。完整说明见 DISCLAIMER.md。本提示不对 LGPL-3.0-or-later 增加许可限制。
更新日志 / Changelog
- 同步官方
upstream/main至efb46db0a9(官方版本0.1.181/0.1.182/0.1.183)。Plus 版本号为0.2.7,不采用官方0.1.183。 - 纳入官方 Go 1.27、OAuth 出站 plugin、自动用卡、
service_tier、SetupToken 协议路由、Grok 4.6 / Realtime、渠道分时计价、Responses Lite 并行工具约束与大整数精度、OpenCode Go 用量重置解析、OAuth 图片 prompt 原样转发、Codex 路由模型目录、Antigravity Sonnet 4.5/4.6 与 token clamp、Kimi K3 / 并发 403、支付完成后余额刷新、邮箱换绑别名去重。 - 完整官方 CLI 快照与 device 模式透传 session/thread/request;compact 与不完整身份继续隔离。普通 OAuth 请求不再凭空声明
remote_compaction_v2。 - 瞬时 429 仍两次明确确认才冻结,不采用官方“配额耗尽立刻暂停”。第一次 failover,30 秒内第二次冻结。卡429 只作用于 OpenAI/Codex,不进 Claude/CC。
- 粘性会话保留 Plus wait-on-full:队列未饱和时继续等待,不因容量溢出改写长期绑定。
session-id可用于调度哈希,不覆盖指纹透传。 - 非流式 SSE「Selected model is at capacity」转为请求级 failover。WebSocket 图片桥保留超大整数精度。插件安装在 Windows 上先关闭 ZIP 再提交,避免文件占用导致 rename 失败。
proxy_id仍 fail-closed;代理丢失或配置错误时明确失败,不静默直连。
验证结果:internal/service 全量、repository、domain、handler、创建账号前端用例均通过。dev / main CI 绿;Release 工作流的 golangci-lint 与 CI 对齐为 v2.13,以支持 Go 1.27。
📥 Installation
Docker:
# GitHub Container Registry
docker pull ghcr.io/zcj-ui/sub2api-plus:0.2.7One-line install (Linux):
curl -sSL https://raw.githubusercontent.com/zcj-ui/sub2api-plus/main/deploy/install.sh | sudo bashManual download:
Download the appropriate archive for your platform from the assets below.