mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 08:06:50 +00:00
- Drop the per-segment 64K truncation: everything forwarded upstream must be audited, and over-long prompts keep the existing fail-closed timeout path. - Strip a data URI only when its payload uses the standard base64 alphabet, is at least 256 characters, and decodes to a PNG/JPEG/GIF/WEBP signature. Prose dressed up as a data URI (hyphens, spaces, plain letter runs, SVG markup) stays in the scan.