Something went wrong. Try again.
sloproxy
Something went wrong. Try again.
fix(api): escape the model name in the unroutable model error master
Build the error body with sjson instead of formatting the requested model name into a JSON literal. The name is client supplied and is echoed back verbatim, so a quote in it produced a malformed body and a crafted name could append fields that overwrote the error code clients branch on, for example turning model_not_found into insufficient_quota. Reported by the Codex reviewer on #4820.
Author sususu Committer sususu98 Date (Aug 6, 2026, 12:49 PM UTC) Commit b148af80 b148af80bd771af5927c0f9404ab1e6aa7b0c3e5 Parent 579f5e30 579f5e30fbd63b36f220dea350d3b0bb1625f38f