Skip to content

[BUG] Switching deepseek providers during a conversation will result in an error #10171

@anyiba

Description

@anyiba

Problem (one or two sentences)

DeepSeek completion error: 400 Missing reasoning_content field in the assistant message at message index 3. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

Context (who is affected and when)

An error occurred when switching suppliers to deepseek during the conversation

Reproduction steps

  1. Start the conversation with another provider, or start the conversation with the deepseek provider first
  2. Switching to another supplier other than deepseek during the process
  3. An error occurred when switching back to the deepseek provider:
    DeepSeek completion error: 400 Missing reasoning_content field in the assistant message at message index 3. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

Expected result

It won't report errors and has context memory

Actual result

error:DeepSeek completion error: 400 Missing reasoning_content field in the assistant message at message index 3. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

Variations tried (optional)

No response

App Version

v3.36.11

API Provider (optional)

DeepSeek

Model Used (optional)

deepseek-reansoner

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

DeepSeek completion error: 400 Missing `reasoning_content` field in the assistant message at message index 3. For more information, please refer to https://api-docs.deepseek.com/guides/thinking_mode#tool-calls

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions