Skip to content

MiniMax M2.5 (NVIDIA NIM): Reasoning content shown as ``` tags instead of "Thinking:" format #15543

Closed as not planned

Description

@codingsoftmx

Description

Problem

When using the MiniMax M2.5 model through NVIDIA NIM provider, the reasoning content is displayed as raw markdown code blocks (```) instead of being formatted as "Thinking:" like other reasoning models (e.g., DeepSeek, Claude).

Expected Behavior

The reasoning content should be:

  1. Displayed in a collapsible "Thinking:" section
  2. Separated from the final response
  3. Formatted consistently with other reasoning models

Current Behavior

The model outputs reasoning wrapped in tags that appear as plain text in the response, making it difficult to distinguish between reasoning and final answer.
Example output:
El usuario me ha saludado con "Hola". Debo responder de manera concisa y directa.

Hola. ¿En qué puedo ayudarte?

Steps to Reproduce

  1. Configure NVIDIA NIM provider with MiniMax M2.5 model
  2. Set reasoning options in opencode.json:
{
  "provider": {
    "nvidia": {
      "models": {
        "minimaxai/minimax-m2.5": {
          "name": "MiniMax M2.5",
          "options": {
            "reasoningEffort": "high"
          }
        }
      }
    }
  }
}
3. Send a query to the model
4. Observe the reasoning content displayed as plain text with ``` tags
Environment
- OpenCode version: 1.2.15
- Provider: NVIDIA NIM
- Model: minimaxai/minimax-m2.5
- API Endpoint: https://integrate.api.nvidia.com/v1
Possible Solutions
1. Add support for MiniMax reasoning format in the NVIDIA NIM provider
2. Parse ``` content blocks as reasoning_content when detected
3. Add model-specific configuration to handle reasoning format
Additional Context
- Other models like DeepSeek V3.2 work correctly with reasoning
- The issue appears specific to how MiniMax M2.5 formats reasoning output
- NVIDIA NIM API returns reasoning in the message content field with markdown code blocks

### Plugins

_No response_

### OpenCode version

_No response_

### Steps to reproduce

_No response_

### Screenshot and/or share link

_No response_

### Operating System

_No response_

### Terminal

_No response_

Activity

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

    @github-actions
    Contributor

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

  3. github-actions commented on May 1, 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

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