feat: upgrade MiniMax default model to M2.7#1291
Merged
CaralHsi merged 9 commits intoMemTensor:dev-20260323-v2.0.11from Mar 26, 2026
Merged
feat: upgrade MiniMax default model to M2.7#1291CaralHsi merged 9 commits intoMemTensor:dev-20260323-v2.0.11from
CaralHsi merged 9 commits intoMemTensor:dev-20260323-v2.0.11from
Conversation
Add MiniMax LLM support via the OpenAI-compatible API, following the same pattern as the existing Qwen and DeepSeek providers. Changes: - Add MinimaxLLMConfig with api_key, api_base, extra_body fields - Add MinimaxLLM class inheriting from OpenAILLM - Register minimax backend in LLMFactory and LLMConfigFactory - Add minimax_config() to APIConfig with env var support (MINIMAX_API_KEY, MINIMAX_API_BASE) - Add minimax to backend_model dicts in product/user config - Add MiniMax example scenario in examples/basic_modules/llm.py - Add unit tests for config and LLM (generate, stream, think prefix) - Update .env.example and README with MiniMax provider info MiniMax API: https://api.minimax.io/v1 (OpenAI-compatible) Models: MiniMax-M2.5, MiniMax-M2.5-highspeed (204K context)
- Update default model from MiniMax-M2.5 to MiniMax-M2.7 in API config - Update example code to use MiniMax-M2.7 as default with M2.7-highspeed listed - Update unit tests to reference M2.7 and M2.7-highspeed models - Keep all previous models (M2.5, M2.5-highspeed) as available alternatives
CaralHsi
approved these changes
Mar 25, 2026
Collaborator
There was a problem hiding this comment.
Thanks for adding MiniMax as a first-class LLM provider! The implementation is clean — inheriting from OpenAILLM is the right call, and the config/factory/test coverage all follow existing patterns nicely.
I made a small fix to keep the backup_* fields in OpenAILLMConfig — they were unintentionally removed during the dev branch merge, which broke OpenAILLM.init() for MinimaxLLM and the related tests. All 3 failing tests pass now.
Great contribution!
Enhanced MemReader configuration to support backup client and general model.
Restored backup configuration options in test_llm.py.
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
Changes
minimax_config()) to MiniMax-M2.7Why
MiniMax-M2.7 is the latest flagship model with enhanced reasoning and coding capabilities, superseding M2.5 as the recommended default.
Testing