Skip to content

Can't work with deepseek-v4-flash when it opens thinking mode #940

Description

@ljunzhuang357

When the thinking mode of DeepSeek-V4-Flash is enabled, it often tends to encounter errors that lead to conversation termination. Once an error occurs, the conversation becomes essentially unusable — any subsequent messages will trigger errors, forcing a restart of the conversation. However, this issue does not occur when the thinking mode is turned off. The downside of not using thinking mode is that the quality of the generated code is lower.

Activity

  1. ljunzhuang357 commented on Apr 29, 2026

    @ljunzhuang357
    Author

    The error content is
    API Error: 400{"error":{"message":"TIreasoning_content' in the thinkingmode mustbeepassed back to theparam":null,"code":"invalid_request_error"}}API","type":"invalid_request_error"

  2. kevincodex1 commented on Apr 29, 2026

    @kevincodex1
    Member

    have you tried in the main branch? we have already fixed this

  3. ljunzhuang357 commented on Apr 29, 2026

    @ljunzhuang357
    Author

    have you tried in the main branch? we have already fixed this

    I installed it a few days ago via npm command line, and the version displayed was v0.7.0. I'm a technical novice and don't know if this counts as the main branch.​

  4. ljunzhuang357 commented on Apr 29, 2026

    @ljunzhuang357
    Author

    have you tried in the main branch? we have already fixed this

    Does installing the main branch require downloading the source code archive, extracting it, and then installing? I don't know. Just now, after uninstalling via npm command line, I reinstalled it. I see the version is still v0.7.0, and I'm worried it might encounter the same problem again.​

  5. ljunzhuang357 commented on Apr 29, 2026

    @ljunzhuang357
    Author

    have you tried in the main branch? we have already fixed this

    Oh, thank you. I just asked the AI, and it said that what I installed via npm command line is the stable version, not the main branch. It seems I need to uninstall that and then install the main branch to try again.​

  6. kevincodex1 commented on Apr 29, 2026

    @kevincodex1
    Member

    let us know if you are still encountering this issue

  7. ljunzhuang357 commented on Apr 29, 2026

    @ljunzhuang357
    Author

    let us know if you are still encountering this issue

    I installed the main branch using the installation package method, but I see the version still shows as 0.7.0. Now I will test it to see if the penetration issue will still occur.​

  8. ljunzhuang357 commented on Apr 29, 2026

    @ljunzhuang357
    Author

    let us know if you are still encountering this issue

    Initially, I tried installing the main branch using the npm command line, but the installation failed.​
    Then I downloaded the source code archive, extracted it, and installed from inside. But the version still shows as 0.7.0, and the same error occurred again.​
    Did I not install the main branch?​

  9. YgnizemKamajaya commented on Apr 29, 2026

    @YgnizemKamajaya

    same here ⎿  API Error: 400 {"error":{"message":"The reasoning_content in the thinking mode must be passed back to the API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

  10. torto commented on Apr 30, 2026

    @torto
    Image

    have you tried in the main branch? we have already fixed this

    Should I use npm run dev? or something different?
    if it is dev, the problem keep happening

  11. dolphprefect commented on Apr 30, 2026

    @dolphprefect
    Contributor

    For me only checking out pr #895 and building worked, the later prs showed still an issue.

  12. xoul-project commented on May 2, 2026

    @xoul-project

    initially it's ok(first time), however it gives an error when i resume session after exit the opencluade.

     API Error: 400 {"error":{"message":"The reasoning_content in the thinking mode must be passed back to the
    API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

  13. ljunzhuang357 commented on May 2, 2026

    @ljunzhuang357
    Author

    Thanks to the developers in the community, the issue where DeepSeek would report an error when enabling thinking mode has been resolved in version V0.8.0.​

  14. dolphprefect commented on May 2, 2026

    @dolphprefect
    Contributor

    Much appreciated! Thanks a lot!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions