Skip to content

fix(nvidia): send correct reasoning control for MiniMax M3#35612

Closed
bazzdug-arch wants to merge 1 commit into
anomalyco:devfrom
bazzdug-arch:fix/nvidia-minimax-m3-reasoning
Closed

fix(nvidia): send correct reasoning control for MiniMax M3#35612
bazzdug-arch wants to merge 1 commit into
anomalyco:devfrom
bazzdug-arch:fix/nvidia-minimax-m3-reasoning

Conversation

@bazzdug-arch

Copy link
Copy Markdown

Summary

NVIDIA NIM's MiniMax-M3 controls reasoning via \chat_template_kwargs.thinking_mode\ (see https://docs.api.nvidia.com/nim/reference/minimaxai-minimax-m3-infer), not the Anthropic-style \ hinking: { type: ... }\ shape.

The \�ariants()\ branch for \minimax-m3\ was sending the Anthropic format for both the Anthropic and the openai-compatible (NVIDIA) providers, so on NVIDIA the reasoning/effort control had no effect - the wrong value was sent.

Change

Route the @ai-sdk/openai-compatible\ (NVIDIA) case to \chat_template_kwargs.thinking_mode\ (\disabled\ / \�daptive\ / \enabled) while keeping the Anthropic path unchanged.

Test plan

  • Configure NVIDIA provider with \minimaxai/minimax-m3\
  • Select reasoning effort (none / thinking / enabled)
  • Confirm \chat_template_kwargs.thinking_mode\ is sent in the request body

NVIDIA NIM's MiniMax-M3 controls reasoning via chat_template_kwargs.thinking_mode
(enabled/disabled/adaptive), not the Anthropic-style thinking.type shape. The
openai-compatible branch was sending the wrong parameter, so the reasoning
effort control had no effect on NVIDIA.

Route the openai-compatible (NVIDIA) case to chat_template_kwargs while keeping
the Anthropic path unchanged.
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@rekram1-node

Copy link
Copy Markdown
Collaborator

this will break the minimax provider, incorrect.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jul 6, 2026
@github-actions github-actions Bot closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants