feat: add MiniMax as alternative LLM provider#212
Open
octo-patch wants to merge 1 commit intolitanlitudan:mainfrom
Open
feat: add MiniMax as alternative LLM provider#212octo-patch wants to merge 1 commit intolitanlitudan:mainfrom
octo-patch wants to merge 1 commit intolitanlitudan:mainfrom
Conversation
Add MiniMax M2.7 and M2.7-highspeed models as alternative LLM providers via the OpenAI-compatible API. This gives users a choice beyond OpenAI for running generative agent simulations. Python package changes: - settings.py: MiniMaxM27Settings and MiniMaxM27HighspeedSettings presets with temperature clamping (0.7) and OpenAI-compat base URL - model.py: reuses existing ChatOpenAI with custom openai_api_base - config.py: set_minimax_token / load_minimax_token with env var (MINIMAX_API_KEY) and config file support - cli.py: skyagi config minimax command + runtime API key injection - util.py: verify_minimax_token validation TypeScript web changes: - model.ts: MiniMax provider in ModelProvider enum and providerTemplates with M2.7 and M2.7-highspeed model presets - .env.example: MINIMAX_API_KEY variable Tests: 21 unit tests + 3 integration tests
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
Python package (7 files, 141 additions)
settings.pyMiniMaxM27SettingsandMiniMaxM27HighspeedSettingspresets with temperature=0.7 andopenai_api_baseconfig.pyset_minimax_token()/load_minimax_token()with env var (MINIMAX_API_KEY) and config file supportcli.pyskyagi config minimaxsubcommand + runtime API key injection when MiniMax model is selectedutil.pyverify_minimax_token()validationTypeScript web (2 files)
model.tsMiniMaxinModelProviderenum +providerTemplatesentry with M2.7 and M2.7-highspeed.env.exampleMINIMAX_API_KEYTests (3 files, 248 additions)
How it works
MiniMax provides an OpenAI-compatible API, so the integration reuses LangChain ChatOpenAI class with a custom openai_api_base. No new LLM wrapper class is needed.
Test plan