Open
Conversation
Add MiniMax (MiniMax-M2.5, MiniMax-M2.5-highspeed) as a new LLM provider option alongside OpenAI and Azure OpenAI. MiniMax offers an OpenAI-compatible API with up to 204K context length. Changes: - Add MiniMax provider detection and API endpoint construction in awesome_chat.py with priority: local > azure > minimax > openai - Handle MiniMax temperature constraint (must be > 0) by adjusting zero values to 0.01 - Add MiniMax model encodings and context lengths in get_token_ids.py - Create config.minimax.yaml template for MiniMax configuration - Update README.md with MiniMax setup instructions
Author
|
@microsoft-github-policy-service agree |
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
Add MiniMax as a new LLM provider for JARVIS/HuggingGPT, alongside the existing OpenAI and Azure OpenAI options. MiniMax provides an OpenAI-compatible chat completions API with models offering up to 204K context length.
Changes
awesome_chat.py): Added MiniMax to the provider priority chain (local > azure > minimax > openai) with proper API endpoint construction, key resolution (config file orMINIMAX_API_KEYenv var), and Bearer token authenticationawesome_chat.py): MiniMax requires temperature in(0.0, 1.0]— zero values are automatically adjusted to0.01get_token_ids.py): AddedMiniMax-M2.5andMiniMax-M2.5-highspeedwithcl100k_baseencoding and 204,800 max context lengthconfig.minimax.yaml): New config file for MiniMax setup with all required fieldsREADME.md): Updated with MiniMax setup instructions and model optionsSupported Models
MiniMax-M2.5MiniMax-M2.5-highspeedUsage
cd hugginggpt python awesome_chat.py --config configs/config.minimax.yaml --mode serverTest Plan