Commit 68e2177
committed
fix: narrow max_completion_tokens remap to explicit provider list
Address review feedback: instead of remapping max_completion_tokens
to max_tokens for all non-OpenAI providers, use an explicit allowlist
of providers known to reject max_completion_tokens. This prevents
silently breaking future providers that may support the field natively.
Signed-off-by: fre <anonwurcod@proton.me>1 parent 675c828 commit 68e2177
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
254 | 268 | | |
255 | | - | |
| 269 | + | |
256 | 270 | | |
257 | 271 | | |
258 | 272 | | |
| |||
648 | 662 | | |
649 | 663 | | |
650 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
651 | 681 | | |
652 | 682 | | |
653 | 683 | | |
| |||
0 commit comments