Repository navigation
Commit 172df1d
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 3e2b11b commit 172df1d
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
304 | 308 | | |
| |||
0 commit comments