superman2003
2707f2793d
fix(gateway): CC 桥接受 Anthropic 上游的 SSE 紧凑格式
SSE 规范允许字段冒号后省略空格(event:message_start / data:{...})。
Kimi 等 Anthropic 兼容上游返回紧凑格式时,Anthropic → Chat Completions
桥按 "event: " / "data: " 严格匹配会丢弃全部事件,且 dataLine[6:] 按带
空格前缀硬切载荷,最终流式/缓冲两条路径都报 "Upstream stream ended
without a response"(与 #4653 同根因;#4657 只修了 /v1/responses 桥,
本补丁补齐对称的 /v1/chat/completions 桥)。
复用 OpenAI 链路既有的 extractOpenAISSEEventLine / extractOpenAISSEDataLine
(正确处理可选空格/tab),流式与缓冲两处统一替换;补充紧凑格式的
缓冲/流式回归测试,原带空格格式用例保持通过。
2026-07-20 21:00:29 +08:00
..
2026-07-20 08:43:19 +00:00
2026-07-16 18:18:28 +08:00
2026-07-20 21:00:29 +08:00
2026-07-18 00:11:18 +08:00
2026-07-10 15:13:11 +08:00
2026-07-18 00:11:18 +08:00
2026-07-09 14:06:57 +08:00
2026-07-13 10:11:33 +08:00
2026-07-15 19:57:37 -07:00
2026-07-01 14:25:46 +08:00