Repository navigation
Commit 005a514
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 59c9edc commit 005a514
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
| |||
0 commit comments