Repository navigation
Commit b363071
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 19421d5 commit b363071
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
0 commit comments