Skip to content

[BUG] DeepSeek 400 Error: The reasoning_content in the thinking mode must be passed back #209

Closed

Description

@reinocheong

Environment

  • Date/time: 2026-05-20T04:17:59.609Z
  • Extension version: 3.55.100066
  • Provider: DeepSeek
  • Model: deepseek-v4-flash

Bug Description

When using deepseek-v4-flash for multi-turn conversations, the API returns a 400 error.

Error Message

DeepSeek completion error: 400 The reasoning_content in the thinking mode must be passed back to the API.

Root Cause

DeepSeek's API requires that the reasoning_content from previous assistant responses must be included and passed back in the message history during subsequent requests. The extension currently filters out or misses this field, leading to API rejection.

Activity

  1. added theissue type on May 20, 2026
  2. mickn277 commented on May 20, 2026

    @mickn277

    This is a duplicate of #201

  3. navedmerchant commented on May 23, 2026

    @navedmerchant
    Contributor

    Resolving as duplicate in favor of #201

  4. added a commit that references this issue on May 26, 2026
    6ac96fc
  5. added a commit that references this issue on May 27, 2026
    07f1bdc
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

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions