mirror of
https://gh-proxy.org/https://github.com/klinsmaya/sub2api.git
synced 2026-11-10 19:36:47 +08:00
HTTP/SSE 已会在终态事件中修正带结果的图片 item,但 WebSocket 下行路径缺少同一处理。现在四条文本帧出口复用现有归一化,并原样保留 result 数据。 Constraint: 仅修改终态事件中带非空 result 的 image_generation_call Rejected: 解码并改写二进制帧 | 二进制帧不属于 JSON 事件契约 Confidence: high Scope-risk: narrow Reversibility: clean Directive: 保持 HTTP、SSE 与 WebSocket 的图片终态规则一致 Tested: 后端 unit、integration、go vet Not-tested: 真实 Codex WebSocket 生图会话 Co-authored-by: OmX <[email protected]>