Ani Tunturi
08d3c26732
fix: sanitize control characters before sending to inference backends
...
Fireworks (via Synthetic Direct) chokes on raw ASCII control chars
(0x00-0x1F) in JSON payloads with "Unterminated string" errors.
The existing sanitize_unicode_surrogates only handles U+D800-DFFF.
Now we also strip control chars (preserving tab/newline/CR) at all
4 request paths — sync, async, and both streaming variants.
2026-03-21 20:23:56 -04:00
..
2026-03-03 18:34:13 -08:00
2026-03-03 18:34:13 -08:00
2026-02-24 10:55:08 -08:00
2025-10-07 17:50:45 -07:00
2026-02-24 10:55:11 -08:00
2025-11-13 15:36:55 -08:00
2026-02-24 10:55:24 -08:00
2026-03-03 18:34:15 -08:00
2026-03-21 20:23:56 -04:00
2025-09-17 15:47:40 -07:00
2026-03-03 18:34:01 -08:00
2026-02-24 10:55:11 -08:00
2026-03-21 20:23:56 -04:00
2026-02-24 10:55:11 -08:00
2026-03-03 18:34:15 -08:00
2026-01-12 10:57:48 -08:00
2025-09-17 15:47:40 -07:00
2026-03-03 18:34:01 -08:00
2026-02-24 10:55:11 -08:00
2025-09-17 15:47:40 -07:00
2026-02-24 10:55:08 -08:00
2026-02-24 10:55:26 -08:00
2026-03-21 12:41:37 -04:00
2026-02-24 10:55:11 -08:00
2026-03-03 18:34:15 -08:00
2026-03-03 18:34:13 -08:00
2025-09-17 15:47:40 -07:00
2026-02-24 10:55:08 -08:00
2026-03-03 18:34:51 -08:00
2025-10-07 17:50:45 -07:00
2026-03-03 18:34:01 -08:00
2025-09-17 15:47:40 -07:00
2026-03-21 17:41:56 -04:00
2025-10-08 16:10:51 -07:00
2026-03-03 18:34:01 -08:00
2026-02-24 10:55:11 -08:00
2025-11-13 15:36:55 -08:00
2025-11-24 19:10:26 -08:00
2026-02-24 10:55:08 -08:00
2025-09-17 15:47:40 -07:00
2026-03-03 18:34:02 -08:00
2026-02-24 10:55:11 -08:00
2025-09-17 15:47:40 -07:00
2026-02-24 10:55:26 -08:00
2026-02-24 10:55:11 -08:00
2026-02-24 10:55:11 -08:00
2026-03-03 18:34:15 -08:00