Skip to content

Add MiniMax M2.1 tool call parser#51

Closed
janhilgard wants to merge 1 commit intowaybarrios:mainfrom
janhilgard:feature/minimax-tool-parser
Closed

Add MiniMax M2.1 tool call parser#51
janhilgard wants to merge 1 commit intowaybarrios:mainfrom
janhilgard:feature/minimax-tool-parser

Conversation

@janhilgard
Copy link
Copy Markdown
Collaborator

Summary

  • Add MiniMaxToolParser for MiniMax M2.1 models using XML-based <minimax:tool_call>/<invoke>/<parameter> format
  • Integrate MiniMax detection into AutoToolParser (step 3.5 between Nemotron and Qwen/Hermes XML)
  • Add --tool-call-parser minimax CLI option with minimax_m2 alias
  • Full streaming support, native tool format (SUPPORTS_NATIVE_TOOL_FORMAT = True), and <think> tag handling
  • 9 dedicated parser tests + streaming test + native format tests (84/84 passing)

Closes #35

Test plan

  • pytest tests/test_tool_parsers.py tests/test_native_tool_format.py -v — 84/84 passed
  • uvx black vllm_mlx/ tests/ — clean
  • uvx ruff check vllm_mlx/tool_parsers/minimax_tool_parser.py — all checks passed
  • Manual test with MiniMax M2.1 model (requires model access)

🤖 Generated with Claude Code

@janhilgard janhilgard mentioned this pull request Feb 9, 2026
@janhilgard janhilgard force-pushed the feature/minimax-tool-parser branch from bf53a35 to 7447808 Compare February 9, 2026 08:20
Add support for MiniMax M2.1 model tool calling format using XML-based
<minimax:tool_call>/<invoke>/<parameter> tags. Includes dedicated parser,
auto-detection in AutoToolParser, streaming support, CLI integration,
tests, and documentation.

Closes waybarrios#35

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@janhilgard janhilgard force-pushed the feature/minimax-tool-parser branch from 2ee6260 to cdd2013 Compare February 12, 2026 17:48
@janhilgard
Copy link
Copy Markdown
Collaborator Author

Closing: Superseded by #98 (same MiniMax M2.1 tool call parser feature, cleaner implementation).

@janhilgard janhilgard closed this Mar 21, 2026
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 M2.1 support?

1 participant