Skip to content

Non-DeepSeek custom providers fail when reasoning_content is sent in tool calls or subsequent messages #37475

Closed as not planned

Description

@realumino

Description

The provider fails because not all OpenAI-compatible endpoints recognize or accept the reasoning_content parameter.

Image

Plugins

No Plugins used

OpenCode version

1.18.3

Steps to reproduce

  1. Add an OpenAI-compatible custom provider (e.g., Cerebras GPT-OSS-120B).
  2. Start a new session using this non-DeepSeek model and send a message.
  • Scenario A: If the message does not trigger a tool call or MCP server, the response and thinking contents display correctly.
  • Scenario B: If a tool call is initiated, the request includes reasoning_content, causing the provider to fail.
  • Scenario C: If the first message succeeds without error, send a second message. This will 100% fail because the provider receives reasoning_content in the request history.

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jul 17, 2026

    @github-actions
    Contributor

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

    These all relate to the same underlying problem: reasoning_content being incorrectly included or excluded from provider history depending on whether the provider supports it.

  2. github-actions commented on Sep 17, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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