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
Model: DeepSeek Reasoner
Provider: deepseek
Status Code: 400
Error Output
400 Missing `reasoning_content` field in the assistant message at message index 46. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode%23tool-calls
Additional Context
Please add any additional context about the error here
I've submitted a fix for this in #11290. The root cause is that appendReasoningFieldsIfSupported returned early when no thinking message preceded the assistant message, so reasoning_content was never set. DeepSeek Reasoner requires this field on every assistant message. The fix ensures reasoning_content defaults to an empty string when no thinking content is available.
Activity
fix: include reasoning_content field for DeepSeek Reasoner models
mvanhorn commentedon Mar 11, 2026
I've submitted a fix for this in #11290. The root cause is that
appendReasoningFieldsIfSupportedreturned early when no thinking message preceded the assistant message, soreasoning_contentwas never set. DeepSeek Reasoner requires this field on every assistant message. The fix ensuresreasoning_contentdefaults to an empty string when no thinking content is available.fix: include reasoning_content field for DeepSeek Reasoner models (co…