Repository navigation
Commit 0bd06bb
fix: always include reasoning_content on assistant messages for proxy compat
Moonshot's API rejects assistant messages without reasoning_content when
thinking is enabled (which proxies like OpenCode Go enable server-side).
Empty string is also rejected — use a single space as fallback.
Fixes tool-call failures through OpenCode Go proxy (anomalyco/opencode#10996).
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 5ce86f9 commit 0bd06bb
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
0 commit comments