Repository navigation
Commit 30829ec
committed
fix(opencode-go): register thinking profile to enable xhigh/max support
Add resolveThinkingProfile hook for opencode-go DeepSeek V4 models,
exposing the full thinking level range (off~max). The stream wrapper
already handles reasoning_effort mapping correctly via the shared
createDeepSeekV4OpenAICompatibleThinkingWrapper; this change only
fixes the UI/gateway display so xhigh and max become selectable.
API verification results (against opencode.ai/zen/go/v1):
- reasoning_effort: max -> 200 + reasoning_content (134 tokens)
- reasoning_effort: high -> 200 + reasoning_content (119 tokens)
- thinking: disabled -> 200 + direct answer (no reasoning)1 parent 741d952 commit 30829ec
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments