Paijo
63e42047e3
fix: hasValuableContent explicit boolean returns for SSE streaming ( #676 )
...
The hasValuableContent() function in streamHelpers.ts returned undefined
instead of explicit false when checking empty delta chunks. This caused
JavaScript type coercion issues where undefined !== '' evaluated to true,
passing empty chunks through to clients.
Fix: Replace implicit returns with explicit boolean returns using
typeof checks and length comparisons for all content fields (content,
reasoning_content, tool_calls, text, thinking, partial_json).
Test: Added unit tests covering OpenAI, Claude, and Gemini format edge cases.
Co-authored-by: oyi77 <oyi77@users.noreply.github.com >
2026-03-27 15:12:51 -03:00
..
2026-03-14 10:58:48 -03:00
2026-02-18 00:02:15 -03:00
2026-03-14 14:03:08 -03:00
2026-03-15 00:59:22 -03:00
2026-03-22 16:22:58 +08:00
2026-03-23 09:21:03 -03:00
2026-03-23 11:08:14 -03:00
2026-03-19 02:25:29 -03:00
2026-02-18 00:02:15 -03:00
2026-02-18 00:02:15 -03:00
2026-03-21 00:50:07 +08:00
2026-03-23 11:08:14 -03:00
2026-03-27 06:23:52 -03:00
2026-02-28 07:59:38 -03:00
2026-03-25 07:22:40 +03:00
2026-03-10 08:47:06 -03:00
2026-03-15 01:51:59 +02:00
2026-02-18 00:02:15 -03:00
2026-03-18 12:25:17 +00:00
2026-03-16 10:23:44 +01:00
2026-03-15 02:06:49 +02:00
2026-03-21 00:50:07 +08:00
2026-02-28 08:15:04 -03:00
2026-02-28 08:15:04 -03:00
2026-03-17 01:47:22 +05:30
2026-02-18 00:02:15 -03:00
2026-03-23 09:21:03 -03:00
2026-03-23 11:08:14 -03:00
2026-02-18 00:02:15 -03:00
2026-02-23 03:50:01 -03:00
2026-03-23 09:21:03 -03:00
2026-03-15 02:06:49 +02:00
2026-03-23 20:36:00 -03:00
2026-03-01 21:42:39 -03:00
2026-03-12 10:10:45 -03:00
2026-03-08 20:47:17 +00:00
2026-03-23 09:21:03 -03:00
2026-03-12 10:20:08 +03:00
2026-02-18 00:02:15 -03:00
2026-03-23 11:08:14 -03:00
2026-03-22 15:22:38 -03:00
2026-03-17 01:59:40 +05:30
2026-03-23 19:53:02 -03:00
2026-02-18 00:02:15 -03:00
2026-03-14 18:49:35 +01:00
2026-02-23 16:50:48 -03:00
2026-03-17 13:05:27 +07:00
2026-03-17 13:05:27 +07:00
2026-03-18 13:57:25 +07:00
2026-02-18 00:02:15 -03:00
2026-03-01 07:10:27 -03:00
2026-02-18 00:02:15 -03:00
2026-02-27 16:29:58 -03:00
2026-03-19 02:25:29 -03:00
2026-03-17 18:28:35 +01:00
2026-03-08 17:58:42 -03:00
2026-02-18 00:02:15 -03:00
2026-03-23 09:21:03 -03:00
2026-02-18 00:02:15 -03:00
2026-03-27 15:12:51 -03:00
2026-03-14 14:03:08 -03:00
2026-02-18 00:02:15 -03:00
2026-03-15 20:37:18 +02:00
2026-03-23 11:08:14 -03:00
2026-03-14 14:03:08 -03:00
2026-03-04 18:45:02 -03:00
2026-03-05 01:16:56 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-26 23:50:54 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-03-23 11:08:14 -03:00
2026-02-18 00:02:15 -03:00
2026-03-16 09:38:34 -03:00
2026-03-24 17:24:11 +08:00
2026-02-18 00:02:15 -03:00