Skip to content

[FEATURE]: support thinking mode variants for MiniMax M3 #31180

@lucidfrontier45

Description

@lucidfrontier45

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

https://platform.minimax.io/docs/api-reference/text-anthropic-api#thinking-control

MiniMax M3 supports two different thinking modes. The default is thinking mode, we can add non-thinking mode as a variant.


FYI I tried to add an variant as follows. The variant itself was added correctly, I can switch to it, but thinking was not disabled. Seems like the way I specified the option was wrong.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "minimax-coding-plan": {
      "models": {
        "MiniMax-M3": {
          "variants": {
            "nothinking": {
              "thinking": {
                "type": "disabled"
              }
            }
          }
        }
      }
    }
  }
}

[update]
I comfirmed the MiniMax API does support disabling thinking

ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
ANTHROPIC_API_KEY=sk-cp-***
import anthropic

client = anthropic.Anthropic()

message = client.messages.create(
    model="MiniMax-M3",
    max_tokens=1000,
    system="You are a helpful assistant.",
    messages=[
        {"role": "user", "content": [{"type": "text", "text": "Hi, how are you?"}]}
    ],
    thinking={"type": "disabled"},
)

for block in message.content:
    if block.type == "thinking":
        print(f"Thinking:\n{block.thinking}\n")
    elif block.type == "text":
        print(f"Text:\n{block.text}\n")

>>>
Text:
Hi! I'm doing well, thanks for asking. How can I help you today? 😊

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions