Skip to content

Releases: atoz03/dev_s2i

Sub2API 1.4.13

Choose a tag to compare

@github-actions github-actions released this 12 Oct 11:14

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

  • Go 升级至 1.26.9,修复 HTTP/2、TLS 与请求解析漏洞;同步 Docker 构建和 CI 版本。
  • 升级 Axios、Vue、DOMPurify、图像依赖及前端构建/测试工具,清理存在漏洞的传递依赖。
  • 升级 Testcontainers 与 OpenTelemetry,移除旧 Docker/gRPC 依赖并适配集成测试端口 API。
  • 安全扫描覆盖开发依赖和集成测试代码;审计请求失败或输出不完整时明确失败。
  • 前端生产依赖审计 0 漏洞,Go 代码扫描 0 可达漏洞。braces 尚无上游修复版,仅限开发构建,豁免到 2026-11-12;未使用的 openpgp 废弃包通告保留。

验证:前端 lint、类型检查、646 个测试与生产构建;Go 普通/unit/integration 测试、lint、嵌入前端测试与构建;审计校验回归和运行时资源检查。GitHub CI 已实际运行并通过 Docker 集成测试,安全扫描全绿,原有 55 条 Dependabot 告警全部关闭。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.13

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.12

Choose a tag to compare

@github-actions github-actions released this 27 Sep 06:13

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

  • 完整支持 gpt-6-sol / gpt-6-luna:模型发现、别名与日期/推理档后缀、none 至 max、Fast/Priority、105 万上下文与 12.8 万输出
  • 补齐 API Key Codex 清单的完整 Responses 模式及模型映射兼容
  • 按官方标准、缓存、Priority 与长上下文规则计费,不继承 Astra 的 1.8 倍业务加价
  • GPT-5 及后续代际统一按 reasoning 模型处理;Sol/Luna 仅在 reasoning.effort=none 时保留采样参数
  • 清理 GPT 不支持的显式 prompt-cache hints,同时保留 prompt_cache_key、工具参数、metadata 与用户 JSON
  • 保留调用方 OpenAI-Beta,仅移除旧 responses=experimental
  • Codex WebSocket 切换 context window 时断开旧 previous_response_id 续链
  • 前端白名单、预设映射和 OpenCode 配置同步加入 Sol/Luna

验证:Go 普通/unit/integration 全量测试通过;golangci-lint 0 issues;前端 lint、typecheck、108 个测试文件共 646 个用例及生产构建通过。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.12

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.11

Choose a tag to compare

@github-actions github-actions released this 08 Sep 06:15

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


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.11

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.10

Choose a tag to compare

@github-actions github-actions released this 05 Sep 05:32

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

  • 注册 gpt-6-astra 与公开别名 gpt-6(模型清单、白名单、预设映射、OpenCode 配置)
  • 修正 Astra 计价:此前落到 gpt-5.4 兜底,按官方 1e-5/5e-5 计并纳入 272K 长上下文换档
  • 修正 Codex 清单档位:补写 low/medium/high/xhigh/max,消除 Astra 的
    "'none' is not supported" 报错
  • /v1/messages 缓存身份放行 Astra;用量记录保留 reasoning.effort=max

📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.10

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.9

Choose a tag to compare

@github-actions github-actions released this 25 Aug 14:08

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

开启透传的 OAuth 账号,客户端稳定报
stream disconnected before completion: stream closed before response.completed;
同一账号不开透传则正常。

根因:handleStreamingResponsePassthrough 全函数只有一处 flush,条件是「本行是客户端
输出事件」。而 SSE 事件由 data 行之后的空行分帧,data: [DONE] 与 event: 行
都不算客户端输出,于是终止事件的分帧空行、[DONE] 及其空行全部留在 4KB bufio 缓冲里,
函数返回时随缓冲丢弃(原生路径在 finalizeStream 有收尾 flush,透传没有)。客户端拿到的
最后一帧永远缺少分帧空行,SSE 解析器不会派发该事件,codex-rs 在 EOF 时从未见过
response.completed。

改为与原生路径同一不变式:一旦开始输出就逐行 flush;首个输出之前仍只写不 flush,
以保住 pre-output failover 的「客户端尚未收到任何字节」前提。
顺带修掉长推理阶段的静默——reasoning / in_progress 等非输出事件此前也从不 flush。

上游非 compact 端点只接受流式,网关强制 stream=true 取数;但该值被回写成客户端意图,
导致「上游返回 SSE 时折叠回 JSON」的分支永远走不到。现改为只在 compact 分支回写。

此前「从未配置过该字段」的 OAuth 账号会被默认收敛,等于升级动作本身就静默改写了每个
存量账号的 installation_id / session_id / thread_id。upstream 有对应的额度回退报障与
A/B 回滚证据(#5555 / #5556 / #5582)。收敛现在必须显式开启。

server_is_overloaded / slow_down 在 Codex CLI 属致命集,收到即终止会话。已无法改走
failover 时改写为 server_error(消息原样保留),让客户端走内置退避重试。

三处零值 net.Dialer(无上限,只能等内核 TCP 重传约 130 秒)与一处忽略 ctx 的
SOCKS5 Dial,统一改为 10s 超时并优先走 DialContext。

dompurify 3.3.1 → 3.4.14,修复多条 sanitizer-bypass XSS 公告,并加 pnpm override 兜底。

  • Codex 指纹收敛默认关闭。仅影响从未配置过该字段的账号;显式配置的账号行为不变。
  • 出站默认 originator 由 codex_cli_rs 改为 codex-tui(跟随 upstream 自 08-07 起
    持续三周的口径修正)。回退:gateway.disable_codex_originator_normalization: true。
  • 客户端请求 stream=false 时,OAuth 透传现在返回 JSON 而不是 SSE。

后端 unit / integration / build 全绿;golangci-lint 0 issues;govulncheck 0 vulnerabilities;
前端 108 文件 / 643 用例通过,typecheck 与 lint 干净,pnpm audit 门禁通过。
两处本地缺陷的用例均验证过「还原修复后失败」。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.9

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.8

Choose a tag to compare

@github-actions github-actions released this 25 Aug 11:02

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

修复

  • Security Scan 红灯:Go 升级到 1.26.6,清掉 6 条标准库漏洞
    (GO-2026-6218 / 6090 / 6089 / 6088 / 5972 / 5026)。govulncheck 归零。
  • gpt-5.6-sol 等模型请求被上游 404:客户端版本号从 0.125.0 升到 0.149.1,
    越过上游 0.144.0 的 version 门槛;originator 与最终 User-Agent 首段强制配套,
    修掉旧「非 Codex UA 兜底」把 codex-tui 改写成 codex_cli_rs 却保留原 originator
    所制造的稳定错配。
  • "stream disconnected before completion: stream closed before response.completed":
    上游按 originator 分桶降载,codex-tui 落在降载桶,请求 HTTP 200 后立刻以
    server_is_overloaded 收尾。出站身份统一归一化后避开该桶。
  • codex_cli_only 访问门绕过:「codex 」家族前缀被 TrimSpace 退化成裸 "codex"
    且走子串匹配,evil-codex_thing 之类伪造标识可通过。改为 originator 精确集合
    + 保留空格的家族前缀,访问门使用严格前缀版。
  • 账号生图测试恒失败:originator=opencode 与 Codex UA 错配,必被上游 404。

新增

  • Codex 客户端版本号自动同步:每 6 小时跟随 openai/codex 官方发布,
    主路径 /releases/latest,异家族时回退扫描 release 列表;只向前推进,
    抓取失败保持既有值,启动防抖避免滚动重启放大成连续请求。
    同步值不进 admin settings API,settings 契约不受影响。

行为变化(默认开启,均可回退)

  • OAuth 出站身份归一化:账号级自定义 User-Agent 不再抵达上游 Codex 路径。
    回退:gateway.disable_codex_originator_normalization: true
  • 服务端默认每 6 小时出网访问 GitHub。离线/防火墙部署请设置
    gateway.disable_codex_version_auto_sync: true(已同步到的版本仍继续生效)。
  • codex_cli_only 访问门收紧(安全修复),透传路径保持宽松版不变。

验证
后端 unit / integration / build、golangci-lint 0 issues、govulncheck 0 漏洞、
前端 typecheck + 78 vitest、pnpm audit 门禁、docker 运行时资源检查全部通过。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.8

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.7

Choose a tag to compare

@github-actions github-actions released this 13 Aug 11:01

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

Features:

  • Converge Codex OAuth installation and session fingerprints for shared accounts.

  • Derive stable per-client thread identifiers while preserving independent conversation threads.

  • Add off, device, session, and full convergence modes to account management.

Compatibility and validation:

  • Preserve the local HTTP, WSv2, image generation, and i18n architecture.

  • Pass backend lint, unit and integration tests, frontend typecheck, lint, 641 tests, production builds, and Docker runtime resource checks.


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.7

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.6

Choose a tag to compare

@github-actions github-actions released this 10 Aug 15:23

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

定向回灌 upstream 三条边界明确、彼此独立的修复。

  • API Key 入参校验 (f5c108c83):quota 与 5h/1d/7d rate limit 拒绝 NaN、Inf 与负数;expires_in_days 必须大于零。
  • Responses→Anthropic 转换 (64090de66):显式跳过 reasoning item,未知 role/type 改走白名单转换,并丢弃转换后为空内容或纯空白 text 的消息。修复带 content 数组的 reasoning item 被原样透传给 Anthropic 换回 400、且该 item 常驻会话历史导致此后每轮持续失败的问题。
  • 系统日志落库退避 (e687ca3e9):连续写入失败后按 2s→60s 指数退避暂停落库,避免尽力而为的观测数据长期占用数据库连接池。健康路径不受影响。

本轮不含 358e4a89a(个人订阅到期时间被 POID workspace entitlement 覆盖):其依赖本地缺失的 eba204632 与 d0b8760eb 前置链,且与本地 selectChatGPTAccountInfo 重构冲突,留待 v1.4.7 单独移植。

继续保留本地 image 生图链路与单体 OpenAI 网关结构;upstream 的 Grok 产品线、channel-monitor-v2 与 response-model 计费系列本轮均不吸收。

golangci-lint run ./... 0 issues;backend test-unit / test-integration 全绿;test-frontend(vue-tsc typecheck + 78 tests)全绿;docker 运行时资源检查通过。


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.6

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.5

Choose a tag to compare

@github-actions github-actions released this 10 Aug 06:53

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

  • quarantine proxies after incomplete Responses SSE streams

  • collapse multiplexed disconnect bursts and fail open when all capacity is quarantined

  • preserve WebSocket terminal writes across ingress lease loss

  • verified with go test ./..., targeted race tests, and golangci-lint run ./...


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.5

One-line install (Linux):

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

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

📚 Documentation

Sub2API 1.4.4

Choose a tag to compare

@github-actions github-actions released this 10 Aug 06:28

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

  • include required display_name fields in converted API key model manifests

  • retain model IDs as stable slugs and fallback display labels

  • verified with go test ./... and golangci-lint run ./...


📥 Installation

Docker:

# GitHub Container Registry
docker pull ghcr.io/atoz03/sub2api:1.4.4

One-line install (Linux):

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

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

📚 Documentation