Commit e7e26cd
committed
fix: warn on unsupported request parameters instead of rejecting
Change validate_no_unsupported_fields to log a warning instead of
returning an error when unknown fields are present. This improves
compatibility with clients that send extra parameters like
add_special_tokens, prompt_cache_key, request_id, or chat_template.
https://claude.ai/code/session_01EoHsvxn4B3WMuJkwP5f6od1 parent aaa8a56 commit e7e26cd
File tree
3 files changed
+35
-21
lines changed- lib/llm/src
- http/service
- protocols/openai
3 files changed
+35
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2786 | 2786 | | |
2787 | 2787 | | |
2788 | 2788 | | |
| 2789 | + | |
2789 | 2790 | | |
2790 | | - | |
2791 | | - | |
2792 | | - | |
2793 | | - | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
| 2791 | + | |
2800 | 2792 | | |
2801 | 2793 | | |
2802 | 2794 | | |
| |||
2819 | 2811 | | |
2820 | 2812 | | |
2821 | 2813 | | |
| 2814 | + | |
2822 | 2815 | | |
2823 | | - | |
2824 | | - | |
2825 | | - | |
2826 | | - | |
2827 | | - | |
2828 | | - | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
| 2816 | + | |
2832 | 2817 | | |
2833 | 2818 | | |
2834 | 2819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
429 | 454 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | | - | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
0 commit comments