Commit e0ac575
committed
fix(thinking): always clamp unsupported levels to nearest valid level
Remove the same-provider-family restriction on level clamping. When a
model registry entry declares supported levels (e.g. Copilot claude-opus-4.6
with [low, medium, high]), requesting "max" should auto-downgrade to
"high" instead of returning ErrLevelNotSupported.
This fixes the case where opencode sends max thinking to a proxied
Copilot endpoint that only supports up to high.1 parent 0c48ef5 commit e0ac575
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments