mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 00:48:00 +00:00
api error strings embedded raw upstream response bodies, so JSON quota payloads and WAF HTML pages leaked through to clients (and through the per-tier chain summary). shortAPIError extracts the envelope reason (error.message / message / msg), collapses HTML blocklist pages to a marker, and caps everything at one line.