Skip to content

fix(provider): correct MiniMax M3 thinking variants - #38330

Merged
rekram1-node merged 1 commit into
devfrom
minimax-thinking-variants
Jul 22, 2026
Merged

rekram1-node merged 1 commit into
devfrom
minimax-thinking-variants

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • use chat_template_kwargs.thinking_mode for MiniMax M3 variants on NVIDIA and Lilac
  • preserve the existing adaptive/disabled variants for direct MiniMax and every other route
  • add focused regression coverage for both affected providers

No request translation or provider-option cleanup is added; these are ordinary model variant bodies returned by the existing variant generator.

Fixes #35027

Testing

  • bun test test/provider/transform.test.ts (358 pass)
  • bun typecheck
  • bunx prettier --check src/provider/transform.ts test/provider/transform.test.ts
  • git diff --check

@rekram1-node
rekram1-node merged commit 50eee1f into dev Jul 22, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the minimax-thinking-variants branch July 22, 2026 15:38
Bkm016 pushed a commit to Bkm016/opencode that referenced this pull request Jul 28, 2026
banlanzs pushed a commit to banlanzs/opencode that referenced this pull request Aug 6, 2026
mkvinicius pushed a commit to mkvinicius/Hubcli that referenced this pull request Aug 12, 2026
mkvinicius pushed a commit to mkvinicius/Hubcli that referenced this pull request Aug 12, 2026
Cherry-picks upstream 50eee1f (fix(provider): correct MiniMax M3 thinking
variants, anomalyco#38330) — directly relevant to the NVIDIA/MiniMax M3 instability
investigated earlier this session. NVIDIA's endpoint expects
chat_template_kwargs.thinking_mode for MiniMax M3, not the generic
Anthropic-style thinking.type shape. Found by scouting upstream for
improvements worth pulling in; clean cherry-pick, no conflicts, 292/292
provider transform tests pass including the 2 new MiniMax M3 cases.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thinking type on nvidia provider, minimax m3 model

1 participant