Files
CLIProxyAPI/internal/runtime/executor
Luis Pater 914399f69c fix(kimi): handle stream cancellation, 50MB SSE buffer, and truncated or error frames
- Guard deferred stream usage publishing with terminal delivery checks in ExecuteStream and executeResponsesStream so mid-stream cancellations publish failures.
- Raise the ExecuteStream scanner buffer to 50MB and parse SSE frames to detect in-band errors without leaking raw payloads into logs or usage failures.
- Fail clean EOFs missing [DONE] or primary choices.0.finish_reason with a truncated stream error wrapping io.ErrUnexpectedEOF instead of synthesizing [DONE].

Closes: #8220
2026-11-26 13:21:36 +08:00
..