
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-15 19:57:37 -07:00
2026-07-03 17:22:49 +00:00
2026-07-16 17:10:44 +08:00
2026-06-26 10:36:09 +08:00
2026-07-06 15:00:29 +08:00
2026-07-16 15:45:22 +08:00
2026-07-16 16:30:19 +08:00
2026-07-16 16:54:22 +08:00
2026-07-16 17:10:44 +08:00
2026-07-03 10:29:33 +08:00
2026-07-03 21:02:31 +08:00
2026-07-15 16:06:59 +08:00