Commit 12b63aa
fix(llms): remove stale xhigh/max clamp in GetEffort
GetEffort was silently downgrading ReasoningXHigh/ReasoningMax to
ReasoningHigh on the non-adaptive (effort/budget) path. Now that
OpenAI-compatible providers such as GPT-5.5 and GLM-5.2 accept
reasoning_effort=xhigh/max natively, the clamp is incorrect and
prevents those levels from reaching the API.
Update the GetEffort table tests to assert pass-through (they still
asserted the removed clamp), and drop the now-false "adaptive-only"
wording from the GetTokens budget comment. GetTokens itself still maps
xhigh/max to the high token budget — there is no distinct budget tier.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c85de76 commit 12b63aa
2 files changed
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 86 | | |
93 | 87 | | |
94 | 88 | | |
| |||
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
142 | | - | |
| 136 | + | |
143 | 137 | | |
144 | 138 | | |
145 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
| 603 | + | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
| 609 | + | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| |||
0 commit comments