Commit 603bd25
committed
fix(opencode): remove model ID blocklist from reasoning variants
Use capabilities.reasoning from models.dev as the sole gate for whether
a model gets reasoning effort variants, instead of hardcoding model ID
exclusions. This allows openai-compatible providers like Fireworks,
z-ai and deepseek to correctly send reasoning_effort.1 parent 5eaef6b commit 603bd25
File tree
2 files changed
+22
-24
lines changed- packages/opencode
- src/provider
- test/provider
2 files changed
+22
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | 407 | | |
419 | 408 | | |
420 | 409 | | |
| |||
635 | 624 | | |
636 | 625 | | |
637 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
638 | 630 | | |
639 | 631 | | |
640 | 632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2071 | 2071 | | |
2072 | 2072 | | |
2073 | 2073 | | |
2074 | | - | |
| 2074 | + | |
2075 | 2075 | | |
2076 | 2076 | | |
2077 | 2077 | | |
| |||
2082 | 2082 | | |
2083 | 2083 | | |
2084 | 2084 | | |
2085 | | - | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
2086 | 2088 | | |
2087 | 2089 | | |
2088 | | - | |
| 2090 | + | |
2089 | 2091 | | |
2090 | | - | |
2091 | | - | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
2092 | 2095 | | |
2093 | | - | |
2094 | | - | |
| 2096 | + | |
| 2097 | + | |
2095 | 2098 | | |
2096 | 2099 | | |
2097 | 2100 | | |
2098 | 2101 | | |
2099 | 2102 | | |
2100 | 2103 | | |
2101 | 2104 | | |
2102 | | - | |
| 2105 | + | |
2103 | 2106 | | |
2104 | | - | |
2105 | | - | |
| 2107 | + | |
| 2108 | + | |
2106 | 2109 | | |
2107 | | - | |
2108 | | - | |
| 2110 | + | |
| 2111 | + | |
2109 | 2112 | | |
2110 | 2113 | | |
2111 | 2114 | | |
2112 | 2115 | | |
2113 | | - | |
| 2116 | + | |
| 2117 | + | |
2114 | 2118 | | |
2115 | 2119 | | |
2116 | 2120 | | |
| |||
2804 | 2808 | | |
2805 | 2809 | | |
2806 | 2810 | | |
| 2811 | + | |
2807 | 2812 | | |
2808 | 2813 | | |
2809 | 2814 | | |
2810 | 2815 | | |
2811 | 2816 | | |
2812 | 2817 | | |
| 2818 | + | |
2813 | 2819 | | |
2814 | 2820 | | |
2815 | 2821 | | |
| |||
0 commit comments