Commit 022beb5
fix(models): guard empty effort set in resolveEffortForModel
An empty reasoningEfforts array ([] is truthy) bypassed the early return and
reached reduce() on an empty array, which throws. No current model triggers it,
but adding `reasoningEfforts: []` to models.json would have crashed the request.
Added a length guard.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 83acb44 commit 022beb5
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments