Commit 522cfb2
authored
Test OpenAI embed 400/422 fail-loud mapping (#222)
Spec's v0.16.0 review flagged that the OpenAI embed error path
(400/422 to provider_invalid_request) was untested, unlike the parametrized
Cohere and TEI equivalents. This is the fail-loud behavior the count-based
batch chunking relies on -- an over-token chunk aborts the whole call
rather than returning a partial. Add the missing parametrized test so the
tag-gating behavior is test-protected, not inspection-only.1 parent a0cf0fa commit 522cfb2
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
605 | 623 | | |
606 | 624 | | |
607 | 625 | | |
| |||
0 commit comments