feat(llm): add MiniMax-M2.7 provider support#57
Merged
brokermr810 merged 1 commit intoApr 23, 2026
Conversation
Add MiniMax as a supported LLM provider alongside OpenRouter, OpenAI, Google Gemini, DeepSeek, and Grok. MiniMax uses an OpenAI-compatible REST API, so the existing _call_openai_compatible() handles it. - LLMProvider.MINIMAX enum value with base_url/default_model/fallback - MINIMAX_API_KEY metaclass property in APIKeys - MINIMAX_API_KEY/MODEL/BASE_URL env var mappings in config_loader - MiniMax option in settings route LLM provider selector - MINIMAX_API_KEY, MINIMAX_MODEL, MINIMAX_BASE_URL in env.example
brokermr810
pushed a commit
that referenced
this pull request
Apr 23, 2026
Co-authored-by: octo-patch <266937838+octo-patch@users.noreply.github.com> Made-with: Cursor
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 MiniMax as a supported LLM provider, alongside the existing OpenRouter, OpenAI, Google Gemini, DeepSeek, and Grok providers.
MiniMax offers two chat models:
Because MiniMax exposes an OpenAI-compatible REST API, no new HTTP client code is needed — the existing
_call_openai_compatible()method handles all requests.Changes
app/services/llm.pyLLMProvider.MINIMAXenum value; provider config with base URL, default model, and fallback; API key mapping; model prefix detection/normalization forminimax/; MiniMax in auto-detection and fallback priority listsapp/config/api_keys.pyMINIMAX_API_KEYmetaclass property (reads fromMINIMAX_API_KEYenv var orminimax.api_keyconfig key)app/utils/config_loader.pyMINIMAX_API_KEY,MINIMAX_BASE_URL,MINIMAX_MODELenvironment variable mappingsapp/routes/settings.pyenv.exampleMINIMAX_API_KEY,MINIMAX_MODEL,MINIMAX_BASE_URLdocumentedConfiguration
How to test
LLM_PROVIDER=minimaxandMINIMAX_API_KEY=<your-key>inbackend_api_python/.env