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
{{ message }}
Repository navigation
[Bug] v1.14.28 DeepSeek V4 thinking mode: content[].thinking must be passed back to API in multi-turn conversations #24803
When using DeepSeek V4 Flash with thinking mode enabled, multi-turn conversations fail with:
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"}}
Environment
OpenCode Version: 1.14.28
Model: deepseek-v4-flash
Provider: deepseek (configured with @ai-sdk/openai-compatible)
Activity
github-actions commentedon Apr 28, 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: Same exact error message —content[].thinkingmust be passed back to the API, DeepSeek thinking mode multi-turnPlease review the above issues and comment there if your situation matches, to help consolidate the discussion.
CHesketh76 commentedon Apr 28, 2026
Running into the same issue on Version 1.14.28.
zzk203 commentedon Apr 28, 2026
Thank you, it works fine after adding interleaved. @rekram1-node
zzk203 commentedon Apr 28, 2026
froooze commentedon Apr 30, 2026
rekram1-node commentedon Apr 30, 2026
@froooze please supply more information: