Skip to content

fix(transform): set minimax-m3 thinking type to enabled#35181

Open
bulutmuf wants to merge 1 commit into
anomalyco:devfrom
bulutmuf:fix/minimax-m3-thinking
Open

fix(transform): set minimax-m3 thinking type to enabled#35181
bulutmuf wants to merge 1 commit into
anomalyco:devfrom
bulutmuf:fix/minimax-m3-thinking

Conversation

@bulutmuf

@bulutmuf bulutmuf commented Jul 3, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #35138

Type of change

  • Bug fix

What does this PR do?

MiniMax M3's Anthropic-compatible API only accepts thinking.type as "enabled" or "disabled", not "adaptive". This caused the following error when toggling thinking on:

Bad Request: Validation: thinking.type must be enabled or disabled

Changed "adaptive" to "enabled" in two places in packages/opencode/src/provider/transform.ts:

  • variants() (L686): The thinking variant value sent when the user selects "thinking" mode.
  • options() (L1148): The default thinking value when MiniMax M3 is used with the Anthropic SDK. The adjacent comment was removed since the code is now self-explanatory.

How did you verify your code works?

  • bun test test/provider/transform.test.ts
  • bun typecheck

Screenshots / recordings

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

MiniMax M3 thinking type "adaptive" causes Bad Request error

1 participant