feat: add MiniMax LLM provider support (default MiniMax-M3)#135
Open
octo-patch wants to merge 3 commits into
Open
feat: add MiniMax LLM provider support (default MiniMax-M3)#135octo-patch wants to merge 3 commits into
octo-patch wants to merge 3 commits into
Conversation
Add MiniMax as a new LLM provider with OpenAI-compatible API. Changes: - Add MiniMaxClient class in llm/manager.py (BASE_URL: https://api.minimax.io/v1) - Register 'minimax' type in CLIENTS dict - Add MiniMax to PROVIDERS in config/llm.py for GUI wizard support - Add MiniMax-M2.5 and MiniMax-M2.5-highspeed models to models.yaml with capabilities, context window (204,800), and pricing info MiniMax provides an OpenAI-compatible API supporting text generation and function calling. Two models are available: - MiniMax-M2.5: $0.3/$1.2 per M tokens (input/output) - MiniMax-M2.5-highspeed: $0.6/$2.4 per M tokens (input/output) API docs: https://platform.minimax.io
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed model entries in models.yaml with REASONING capability - Update MiniMaxClient default MODEL from M2.5 to M2.7 - Retain M2.5/M2.5-highspeed entries for backward compatibility
- Add MiniMax-M3 to model list and set as default - Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed - Remove older models (M2.5/M2.5-highspeed) - Update MiniMaxClient.MODEL to MiniMax-M3
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 for aipyapp, with the latest MiniMax-M3 model as the default.
Changes
aipyapp/config/llm.py): Added MiniMax provider entry withapi.minimax.io/v1base URLaipyapp/llm/manager.py): AddedMiniMaxClientextendingOpenAIBaseClientwith MiniMax-M3 as default modelaipyapp/res/models.yaml): Added 3 MiniMax model entries:MiniMax-M3— default: 512K context, 128K max output, supports image input, reasoningMiniMax-M2.7— previous-generation flagship with reasoning supportMiniMax-M2.7-highspeed— high-speed variant of M2.7Configuration
{ "MiniMax": { "api_key": "your-minimax-api-key", "type": "minimax" } }Get an API key at https://platform.minimaxi.com
Why MiniMax-M3?
MiniMax-M3 is the latest MiniMax model, featuring:
api.minimax.io/v1MiniMax-M2.7 and MiniMax-M2.7-highspeed remain available for users who prefer the previous generation. Older models (M2.5 series) have been dropped.