mirror of
https://gh-proxy.org/https://github.com/klinsmaya/sub2api.git
synced 2026-11-11 01:16:53 +08:00
自定义 API-key 上游可能将普通 OpenAI 模型列表作为 2xx 响应返回。现在只校验稳定 envelope,并把结构错误归类为可重试,以便冷缓存时换号且不污染缓存。 Constraint: Codex manifest schema 会随客户端演进,仅校验顶层 models 数组 Rejected: 在网关合成完整 manifest | 容易与上游 schema 漂移 Confidence: high Scope-risk: narrow Reversibility: clean Directive: 不要在此处校验 models 元素的易变字段 Tested: 后端 unit、integration、go vet Not-tested: 真实第三方 API-key 上游的在线 failover Co-authored-by: OmX <[email protected]>