
viccyandOmX
43e95dfa45
避免无效模型清单破坏 Codex 能力发现
自定义 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 <omx@oh-my-codex.dev>
2026-07-16 17:10:44 +08:00
..
2026-07-16 16:49:08 +08:00
2026-07-15 11:17:45 +08:00
2026-07-16 17:10:44 +08:00
2026-07-16 13:47:50 +08:00
2026-07-10 15:13:11 +08:00
2026-07-01 14:25:46 +08:00
2026-07-09 14:06:57 +08:00
2026-07-13 10:11:33 +08:00
2026-07-15 19:57:37 -07:00
2026-07-01 14:25:46 +08:00