Commit 4f6b1ab
committed
Reject unknown thinking_budget effort levels at parse time
Previously, a typo like 'thinking_budget: adaptative' was silently accepted
but no provider recognized it, so thinking was never enabled. Now the YAML
and JSON unmarshalers validate the effort string against the set of accepted
values (none, minimal, low, medium, high, max, adaptive) and return a clear
error on unrecognized input.
Assisted-By: docker-agent1 parent 4dd843d commit 4f6b1ab
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
686 | 700 | | |
687 | 701 | | |
688 | 702 | | |
| |||
694 | 708 | | |
695 | 709 | | |
696 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
697 | 714 | | |
698 | 715 | | |
699 | 716 | | |
| |||
793 | 810 | | |
794 | 811 | | |
795 | 812 | | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
796 | 816 | | |
797 | 817 | | |
798 | 818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
147 | 174 | | |
148 | 175 | | |
149 | 176 | | |
| |||
0 commit comments