Commit b6bef5f
fix(openrouter): bound video model catalog JSON response reads
The video model catalog endpoint used an unbounded await response.json()
to parse the OpenRouter video models list. Route through
readProviderJsonResponse (16 MiB cap) to match the bound already in
place for the chat/text model catalog paths.
AI-assisted.
Co-authored-by: Cursor <[email protected]>1 parent f29dbd3 commit b6bef5f
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
0 commit comments