Commit d8d178b
fix(plugins): use shared readProviderJsonResponse for embeddings API
Replace custom readJsonResponse with the shared readProviderJsonResponse
from provider-http-errors, which already includes the standard 16 MB
bounded read via readResponseWithLimit.
This avoids duplicating the bounded-read pattern and keeps the
embeddings provider aligned with provider HTTP guardrails.
Co-Authored-By: Claude <[email protected]>1 parent 9e3a917 commit d8d178b
1 file changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 288 | + | |
294 | 289 | | |
295 | 290 | | |
296 | 291 | | |
| |||
386 | 381 | | |
387 | 382 | | |
388 | 383 | | |
389 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
390 | 388 | | |
391 | 389 | | |
392 | 390 | | |
| |||
0 commit comments