li
a0522fae7f
fix(apicompat): Chat→Responses 流在 length 截断时以 response.incomplete 收尾
FinalizeChatCompletionsResponsesStream 在 finish_reason=length 时已把
response.status 置为 incomplete 并带上 incomplete_details,但终止事件名
仍固定为 response.completed。按事件类型分派的 Responses 客户端(如 Codex)
会把被 max_tokens 截断的输出当作正常完成。
兄弟转换器 Anthropic→Responses 早已按 status 选择 response.incomplete,
本次对齐。计费用量取自上游原始 chunk 扫描,不读取这批事件,不受影响;
仓库内 Responses→Chat 转换器已把 response.incomplete 识别为终止事件。
既有两条用例把旧事件名编码进 switch 分支、且无"必须看到终止事件"的标志,
改名后断言会被静默跳过;改为匹配 response.incomplete、遇到 completed 直接
失败,并补 sawIncomplete 标志。
Refs #7876
2026-11-27 18:59:27 +08:00
..
2026-11-01 23:52:35 +08:00
2026-07-01 11:32:22 +08:00
2026-11-27 17:05:35 +08:00
2026-11-27 18:59:27 +08:00
2026-11-17 23:08:42 +03:00
2026-08-07 20:49:39 +08:00
2026-02-28 15:01:20 +08:00
2026-11-11 10:01:42 +08:00
2026-11-11 10:01:42 +08:00
2026-10-31 11:45:55 +08:00
2026-07-14 01:29:30 +08:00
2026-11-20 10:50:32 +08:00
2026-08-06 20:34:37 +08:00
2026-07-18 00:11:18 +08:00
2026-08-01 15:03:59 +08:00
2026-11-26 03:52:33 -04:00
2026-05-14 11:46:24 +08:00
2026-10-23 15:24:24 +08:00
2026-03-02 16:04:20 +08:00
2026-08-03 19:59:58 +08:00
2026-08-07 16:29:48 +08:00
2026-11-26 17:39:29 +08:00
2026-10-23 15:24:24 +08:00
2026-08-24 12:21:06 +08:00
2026-11-09 10:27:08 +08:00
2026-07-02 16:11:07 +08:00
2026-07-16 09:51:41 +08:00
2026-10-02 13:51:58 +08:00
2026-11-24 22:46:46 +08:00
2026-11-14 04:10:03 -08:00
2026-10-06 22:53:10 +08:00