li
3c5553e253
fix(responses): 网关合成的 Responses 对象补齐 created_at,修复严格客户端反序列化失败
严格的 Responses 客户端(Rust serde 系,如 Codex / Grok CLI)把 created_at 声明为
必填字段,缺失即 `missing field 'created_at'` 直接读不出响应。
apicompat.ResponsesResponse 此前根本没有这个字段,六个构造点全部不写:
Chat→Responses 与 Anthropic→Responses 两座桥的非流式结果、response.created、
终止事件,以及两处手写的 response.failed 帧。
两个流式 state 早就在 New*State() 里采集了 Created 时间戳,只是没有出口——
反方向(Responses→Chat)每个 chunk 都老老实实发 created,正方向直接丢在地上。
原生 Responses 透传走 gjson/sjson 字节级改写,保留上游原样,不受影响;
本次只补合成路径。
Fixes #5601
2026-08-14 11:05:29 +08:00
..
2026-08-05 18:25:58 +08:00
2026-07-20 11:39:37 +08:00
2026-08-14 11:05:29 +08:00
2026-07-17 03:35:26 +00:00
2026-07-19 15:00:09 +08:00
2026-07-19 13:05:24 +08:00
2026-08-05 18:25:58 +08:00
2026-08-05 18:25:58 +08:00
2026-08-13 08:37:57 +08:00
2026-07-09 22:52:35 +08:00
2026-08-14 11:05:29 +08:00
2026-05-31 16:14:58 +08:00
2026-06-26 00:58:38 +08:00
2026-07-10 20:46:38 +08:00
2026-07-31 19:36:47 +08:00
2026-08-13 08:37:57 +08:00
2026-08-13 08:37:57 +08:00
2026-07-05 13:58:08 +08:00
2026-07-19 13:05:24 +08:00
2026-07-27 08:19:19 +08:00
2026-07-27 08:19:19 +08:00
2026-08-14 11:05:29 +08:00
2026-07-14 14:48:22 +08:00
2026-07-13 14:38:05 +08:00
2026-07-12 04:53:34 +08:00
2026-07-10 17:38:17 +08:00
2026-06-03 17:26:05 +08:00
2026-07-09 15:34:10 +08:00
2026-08-07 23:09:03 +08:00
2026-07-15 00:59:28 +08:00
2026-07-15 14:31:26 +08:00
2026-08-07 23:09:03 +08:00
2026-07-27 08:19:19 +08:00
2026-07-27 08:19:19 +08:00
2026-07-20 11:39:37 +08:00
2026-06-06 00:59:27 +08:00
2026-07-13 12:08:32 +08:00
2026-07-15 14:31:26 +08:00
2026-08-14 11:05:29 +08:00