You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bad Request: {"error":{"message":"The content[].thinking in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
Plugins
oh-my-openagent,opencode-md-table-formatter
OpenCode version
1.14.29
Steps to reproduce
The above error occurs when using the DeepSeek model to ask questions
Please review those issues to see if they address your problem. If the fix from a closed issue didn't resolve it for you, please add a comment there or provide more details about what's different in your case.
These 'content[].thinking error's are still persisting in version 1.14.50 for me (despite having reported it in #24261, which bots apparently decided has somehow already qualified as 'closed'!?).
I also tried the renamed 'custom-deepseek' approach recommended by @mq00fc, but it still didn't stop the errors for me...
These 'content[].thinking error's are still persisting in version 1.14.50 for me (despite having reported it in #24261, which bots apparently decided has somehow already qualified as 'closed'!?).
I also tried the renamed 'custom-deepseek' approach recommended by @mq00fc, but it still didn't stop the errors for me...
It seems this issue really has been fixed; when I stopped using a custom name and switched back to the default "deepseek," the problem no longer occurred
Not for me yet! i've tried it multiple ways, and even tried updating my '.config/opencode/opencode.json' variation to include the 'interleaved' field you mention above (which mine did not have yet, though I had copied it from deepseek's own example at the time). I have found that when the error comes up, I can just tell the AI that I am replying with '?' because opencode is erroring, and it manages to proceed with multiple stops along the way...
Activity
github-actions commentedon Apr 29, 2026
This issue might be a duplicate of existing issues. Please check:
content[].thinkingin the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}} #24791: Exact same error message —content[].thinkingin the thinking mode must be passed back to the API (closed)content[].thinkingmust be passed back to API in multi-turn conversations (closed)Please review those issues to see if they address your problem. If the fix from a closed issue didn't resolve it for you, please add a comment there or provide more details about what's different in your case.
mq00fc commentedon Apr 29, 2026
The above configuration causes problems if I use the default deepseek as the provider, but it works fine if I change the name to custom-deepseek
DXXS commentedon May 15, 2026
These 'content[].thinking error's are still persisting in version 1.14.50 for me (despite having reported it in #24261, which bots apparently decided has somehow already qualified as 'closed'!?).
I also tried the renamed 'custom-deepseek' approach recommended by @mq00fc, but it still didn't stop the errors for me...
mq00fc commentedon May 15, 2026
It seems this issue really has been fixed; when I stopped using a custom name and switched back to the default "deepseek," the problem no longer occurred
DXXS commentedon May 15, 2026
Not for me yet! i've tried it multiple ways, and even tried updating my '.config/opencode/opencode.json' variation to include the 'interleaved' field you mention above (which mine did not have yet, though I had copied it from deepseek's own example at the time). I have found that when the error comes up, I can just tell the AI that I am replying with '?' because opencode is erroring, and it manages to proceed with multiple stops along the way...
rekram1-node commentedon May 15, 2026
Can I have more info about the setups people are using? @DXXS are u using anthropic api? Can u use the completions api?
Deepseek isnt compliant w/ the anthropic sdk we use, I can apply patches to the sdk as a workaround
DXXS commentedon May 15, 2026
My setup was already otherwise listed in the linked report man.
github-actions commentedon Jul 15, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.