feat: add MiniMax as first-class LLM provider#407
Open
octo-patch wants to merge 1 commit intoianarawjo:mainfrom
Open
feat: add MiniMax as first-class LLM provider#407octo-patch wants to merge 1 commit intoianarawjo:mainfrom
octo-patch wants to merge 1 commit intoianarawjo:mainfrom
Conversation
Add MiniMax M2.7 and M2.7-highspeed models as a native LLM provider, following the DeepSeek/OpenAI-compatible pattern. Includes: - NativeLLM enum entries for MiniMax-M2.7 and MiniMax-M2.7-highspeed - LLMProvider.MiniMax with provider detection and rate limiting - call_minimax() via OpenAI-compat API (https://api.minimax.io/v1) - Temperature clamping (min 0.01) per MiniMax API requirement - Settings schema with model selector, temperature, system_msg, top_p, max_tokens, stop, presence/frequency_penalty - UI menu group with both models - Flask env var mapping for MINIMAX_API_KEY - Fix: call_chatgpt now respects custom API_KEY param (skips OPENAI_API_KEY check when a custom key is provided) - 25 tests (21 unit + 3 integration + 1 conditional)
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 in ChainForge, enabling users to query MiniMax M2.7 and M2.7-highspeed models directly from the visual prompt-testing UI.
Changes
How it works
MiniMax follows the same pattern as DeepSeek: an OpenAI-compatible wrapper that delegates to call_chatgpt() with a custom base URL and API key. Users just need to set their MINIMAX_API_KEY in Settings.
Test plan