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-13 07:49:08 +08:00
2026-08-13 07:49:08 +08:00
2026-08-09 22:42:51 +08:00
2026-08-09 22:42:51 +08:00
2026-08-06 20:34:37 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 15:09:29 +08:00
2026-07-16 13:47:50 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 20:57:15 +08:00
2026-08-04 20:57:15 +08:00
2026-08-09 15:53:40 +08:00
2026-08-07 03:09:57 +08:00
2026-08-04 20:57:15 +08:00
2026-07-28 17:21:32 +08:00
2026-08-04 20:57:15 +08:00
2026-07-29 12:32:44 +08:00
2026-07-29 12:32:44 +08:00
2026-07-24 01:22:34 +08:00
2026-08-08 01:59:44 +08:00
2026-08-07 11:05:32 +08:00
2026-08-07 11:05:32 +08:00
2026-07-15 22:22:51 +08:00
2026-08-01 21:15:44 +08:00
2026-08-01 21:15:44 +08:00
2026-07-23 09:20:52 +08:00
2026-07-26 20:23:50 +09:00
2026-07-26 20:23:50 +09:00
2026-08-01 22:39:33 +08:00
2026-08-08 01:02:02 +08:00
2026-08-08 01:02:02 +08:00
2026-07-23 09:20:52 +08:00
2026-08-01 22:39:33 +08:00
2026-07-26 20:23:50 +09:00
2026-07-27 15:20:03 +00:00
2026-08-01 22:39:33 +08:00
2026-07-27 15:20:03 +00:00
2026-08-13 01:23:45 +08:00
2026-07-14 14:55:30 +08:00
2026-07-14 14:55:30 +08:00
2026-07-23 09:20:52 +08:00
2026-07-15 22:42:53 +08:00
2026-07-23 09:20:52 +08:00
2026-08-13 07:49:19 +08:00
2026-08-01 22:39:33 +08:00
2026-08-13 08:38:10 +08:00
2026-08-13 08:38:10 +08:00
2026-08-07 16:29:57 +08:00
2026-08-08 09:45:12 +08:00
2026-08-07 11:05:32 +08:00
2026-07-20 15:20:51 +08:00
2026-07-15 19:57:37 -07:00
2026-07-19 00:56:21 -07:00
2026-08-04 13:48:19 +08:00
2026-08-04 13:48:19 +08:00
2026-07-17 22:10:18 +08:00
2026-07-23 09:19:24 +08:00
2026-08-01 22:39:33 +08:00
2026-07-16 00:52:26 +08:00
2026-08-08 01:02:02 +08:00
2026-07-16 17:10:44 +08:00
2026-07-27 18:42:34 +08:00
2026-08-01 22:39:33 +08:00
2026-07-14 22:40:05 +08:00
2026-08-01 22:39:32 +08:00
2026-07-23 00:06:04 +08:00
2026-07-26 20:23:50 +09:00
2026-07-15 13:01:16 +08:00
2026-08-11 14:09:07 +08:00
2026-08-11 13:58:06 +08:00
2026-07-26 13:33:56 +08:00
2026-07-26 13:33:56 +08:00
2026-07-17 15:29:14 +08:00
2026-07-15 04:20:11 +08:00
2026-07-23 23:04:00 +08:00
2026-08-07 20:49:39 +08:00
2026-07-25 12:50:46 +08:00
2026-07-25 12:51:20 +08:00
2026-08-01 22:39:32 +08:00
2026-08-01 22:39:33 +08:00
2026-07-15 09:29:05 +08:00
2026-07-19 18:49:08 +08:00
2026-08-01 22:39:33 +08:00
2026-08-13 08:37:57 +08:00
2026-08-13 08:37:57 +08:00
2026-07-18 00:11:18 +08:00
2026-07-18 20:46:50 +08:00
2026-07-23 09:20:18 +08:00
2026-07-18 00:11:18 +08:00
2026-07-23 09:19:25 +08:00
2026-08-04 15:09:29 +08:00
2026-08-04 20:57:15 +08:00
2026-07-22 19:18:04 +08:00
2026-07-17 00:39:39 +08:00
2026-07-17 00:39:39 +08:00
2026-08-11 11:56:46 +08:00
2026-08-11 11:56:46 +08:00
2026-07-17 00:39:39 +08:00
2026-07-17 00:39:39 +08:00
2026-08-06 20:34:37 +08:00
2026-08-09 15:53:40 +08:00
2026-08-14 11:05:29 +08:00
2026-08-14 11:05:29 +08:00
2026-07-16 16:49:08 +08:00
2026-08-07 09:40:11 -04:00
2026-08-07 17:58:23 +08:00
2026-08-01 11:29:58 +08:00
2026-07-28 17:21:32 +08:00
2026-08-07 11:05:32 +08:00