Luis Pater
522b4de54a
fix(openai): handle premature SSE stream termination with terminal error emission
...
- Propagate pending terminal errors when image/response data streams close, emitting `error`/`failed` SSE events (or HTTP error responses when no stream started) instead of dropping them.
- Sanitize and normalize streamed terminal errors before writing, and reuse normalized errors for cancellation.
- Improve SSE parsing/frame handling for multiline and cross-chunk payloads, prioritize payload/event-level failures, and avoid mutating emitted frame buffers by cloning chunks before queueing.
Closes : #4904
2026-08-12 13:05:06 +08:00
..
2026-08-12 01:04:22 +08:00
2026-07-30 23:26:20 +08:00
2026-07-31 12:45:13 +08:00
2026-07-26 14:31:45 +08:00
2026-07-26 03:07:21 +08:00
2026-08-11 09:57:15 +08:00
2026-07-26 14:31:45 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-05 00:27:32 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 16:07:42 +08:00
2026-07-25 14:07:31 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-03 16:09:22 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 15:44:44 +08:00
2026-08-11 22:56:41 +08:00
2026-08-03 15:44:44 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 22:56:41 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-10 04:32:28 +08:00
2026-08-11 22:56:41 +08:00
2026-08-11 22:56:41 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 22:56:41 +08:00
2026-08-03 14:47:26 +08:00
2026-08-06 17:19:24 +08:00
2026-08-11 22:56:41 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 19:33:40 +08:00
2026-08-09 04:36:39 +08:00
2026-08-09 04:36:39 +08:00
2026-07-26 14:31:45 +08:00
2026-07-26 03:07:21 +08:00
2026-08-06 17:19:24 +08:00
2026-08-03 02:45:49 +08:00
2026-07-24 11:10:58 -07:00
2026-07-26 19:11:32 +08:00
2026-08-06 17:19:24 +08:00
2026-08-06 04:49:28 +08:00
2026-08-09 18:01:28 +08:00
2026-08-09 18:01:28 +08:00
2026-08-06 20:49:23 +08:00
2026-08-06 17:19:24 +08:00
2026-07-26 14:31:45 +08:00
2026-07-30 16:37:40 +08:00
2026-07-31 12:45:13 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-06 04:49:28 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-01 13:01:33 +08:00
2026-07-26 14:31:45 +08:00
2026-07-25 00:32:37 +08:00
2026-08-06 04:49:28 +08:00
2026-07-30 21:53:30 +08:00
2026-08-06 17:19:24 +08:00
2026-07-29 14:14:18 +08:00
2026-08-12 01:30:18 +08:00
2026-08-12 01:30:18 +08:00
2026-08-08 05:08:42 +08:00
2026-08-09 04:36:39 +08:00
2026-08-12 13:05:06 +08:00
2026-08-07 06:26:33 +08:00
2026-08-03 03:37:24 +08:00
2026-08-12 13:05:06 +08:00
2026-08-07 19:16:06 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-04 18:37:01 +08:00
2026-07-27 00:01:49 +08:00
2026-08-09 23:15:46 +08:00
2026-08-07 06:48:09 +08:00
2026-07-26 14:31:45 +08:00
2026-08-09 23:15:46 +08:00
2026-07-26 14:31:45 +08:00
2026-08-05 07:28:55 +08:00
2026-08-07 06:48:09 +08:00
2026-08-07 06:48:09 +08:00
2026-08-07 06:48:09 +08:00