Add MiniMax M2.1 tool call parser#51
Closed
janhilgard wants to merge 1 commit intowaybarrios:mainfrom
Closed
Conversation
Closed
bf53a35 to
7447808
Compare
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>
2ee6260 to
cdd2013
Compare
Collaborator
Author
|
Closing: Superseded by #98 (same MiniMax M2.1 tool call parser feature, cleaner implementation). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MiniMaxToolParserfor MiniMax M2.1 models using XML-based<minimax:tool_call>/<invoke>/<parameter>formatAutoToolParser(step 3.5 between Nemotron and Qwen/Hermes XML)--tool-call-parser minimaxCLI option withminimax_m2aliasSUPPORTS_NATIVE_TOOL_FORMAT = True), and<think>tag handlingCloses #35
Test plan
pytest tests/test_tool_parsers.py tests/test_native_tool_format.py -v— 84/84 passeduvx black vllm_mlx/ tests/— cleanuvx ruff check vllm_mlx/tool_parsers/minimax_tool_parser.py— all checks passed🤖 Generated with Claude Code