feat: add MiniMax as LLM provider backend with M3 upgrade#138
Open
octo-patch wants to merge 4 commits into
Open
feat: add MiniMax as LLM provider backend with M3 upgrade#138octo-patch wants to merge 4 commits into
octo-patch wants to merge 4 commits into
Conversation
Add MiniMax (https://platform.minimax.io) as a first-class LLM provider backend, supporting the M2.5 model family via OpenAI-compatible API. Changes: - Add MinimaxClient in rlm/clients/minimax.py extending OpenAIClient with MiniMax defaults (base_url, model, temperature=1.0) - Register "minimax" backend in client router (__init__.py) - Add "minimax" to ClientBackend type (types.py) - Add MiniMax usage docs to README.md - Add 17 unit tests + 3 integration tests Supported models: MiniMax-M2.5, MiniMax-M2.5-highspeed (204K context)
a942e4f to
a39ee29
Compare
- Update all test references from MiniMax-M2.5 to MiniMax-M2.7 - Update MiniMax-M2.5-highspeed to MiniMax-M2.7-highspeed - Add backward compatibility test for legacy MiniMax-M2.5 model - Add dedicated test for MiniMax-M2.7-highspeed model - Keep all previous models as available alternatives
- Update all test references from MiniMax-M2.5 to MiniMax-M2.7 - Add MiniMax-M2.7-highspeed model test - Add backward compatibility test for legacy MiniMax-M2.5 model - Integration tests verified with real MiniMax API
- Set MiniMax-M3 as the default model in MinimaxClient - Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives - Remove legacy MiniMax-M2.5 references from default/tests - Update README to reflect M3 model family - Fix pre-existing import path bug for DEFAULT_MINIMAX_* constants in tests - Add unit tests verifying M3 default and M3 invocation 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
Add MiniMax as a first-class LLM provider backend, using the OpenAI-compatible API.
Update: Upgraded default model from MiniMax-M2.7 to MiniMax-M3, the latest flagship model with 512K context, 128K max output, and image input support.
Changes
minimaxtoClientBackendtype inrlm/core/types.pyminimaxbackend toOpenAIClientwith MiniMax base URL inrlm/clients/__init__.pyMINIMAX_API_KEYenvironment variable inrlm/clients/openai.pyMiniMax-M3set as the default model; M2.7 and M2.7-highspeed retained as alternativestests/clients/test_minimax.pyModels
MiniMax-M3(default)MiniMax-M2.7MiniMax-M2.7-highspeedUsage
Testing