Skip to content

Error: DeepSeek Reasoner - 400 #11285

Closed

Description

@caoyuee

Error Details

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

Activity

  1. added
    area:integration
    kind:bug
    on Mar 11, 2026
  2. added a commit that references this issue on Mar 11, 2026
    a843400
  3. mvanhorn commented on Mar 11, 2026

    @mvanhorn
    Contributor

    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.

  4. added a commit that references this issue on Mar 21, 2026
    4b6a09c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:integrationkind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions