Skip to content

deepseek v4 (official provider) can fail due to missing reasoning_content #24802

Closed as duplicate

Description

@karuboniru

Description

session fails with The reasoning_content in the thinking mode must be passed back to the API. ramdomly and can't continue.

Related OpenAI API payload is: https://gist.github.com/karuboniru/51d2295c6dd66351b4df500876e9fbf1

Plugins

N/A

OpenCode version

1.14.28

Steps to reproduce

  1. do a complex job with deepseek with OpenAI compatable API endpoint
  2. wait long enough, you'll see error: The reasoning_content in the thinking mode must be passed back to the API.

Screenshot and/or share link

https://opncd.ai/share/3lV8UbeP

Operating System

Fedora 44

Terminal

ptyxis

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 28, 2026
  2. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  3. rekram1-node commented on Apr 28, 2026

    @rekram1-node
    Contributor

    @karuboniru you say "official provider" but your session is with cloudflare? Soo not the official provider right...

  4. karuboniru commented on Apr 29, 2026

    @karuboniru
    Author

    @rekram1-node its just a proxy (AI gateway mode, which passes the payload to deepseek but enables me to capture the json)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions