Add MiniMax model support (M2.5 + M2.7) via OpenAI-compatible API#7393
Open
octo-patch wants to merge 2 commits intomicrosoft:mainfrom
Open
Add MiniMax model support (M2.5 + M2.7) via OpenAI-compatible API#7393octo-patch wants to merge 2 commits intomicrosoft:mainfrom
octo-patch wants to merge 2 commits intomicrosoft:mainfrom
Conversation
Add MiniMax M2.5 and M2.5-highspeed models to the OpenAI client, following the same pattern used for Gemini, Anthropic, and Llama providers. Changes include: - Add MINIMAX_M2_5 to ModelFamily with is_minimax() helper - Register MiniMax models in _model_info.py (capabilities, token limits) - Auto-detect MiniMax model prefix for base_url and MINIMAX_API_KEY - Add MiniMax section to models tutorial documentation
Author
|
@microsoft-github-policy-service agree |
Upgrade MiniMax integration to include the latest M2.7 flagship models alongside existing M2.5 models. M2.7 offers the same 204K context window, vision, function calling, and structured output capabilities. Co-Authored-By: Octopus <liyuan851277048@icloud.com>
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
This PR adds first-class support for MiniMax models to AutoGen's OpenAI-compatible client, following the same pattern used for Gemini, Anthropic, and Llama providers.
Supported Models
MiniMax-M2.7MiniMax-M2.7-highspeedMiniMax-M2.5MiniMax-M2.5-highspeedChanges
MINIMAX_M2_5andMINIMAX_M2_7toModelFamilywithis_minimax()helper method_model_info.pywith capabilities and 204K token limitsMINIMAX_API_BASE_URLconstant (https://api.minimax.io/v1)MINIMAX_API_KEYenv var and auto-configure base URL forMiniMax-*modelsUsage
Test Plan