feat: add MiniMax as third LLM provider#131
Open
octo-patch wants to merge 1 commit intoguangzhengli:mainfrom
Open
feat: add MiniMax as third LLM provider#131octo-patch wants to merge 1 commit intoguangzhengli:mainfrom
octo-patch wants to merge 1 commit intoguangzhengli:mainfrom
Conversation
Add MiniMax AI (https://www.minimaxi.com) as a first-class LLM provider alongside OpenAI and Azure OpenAI. MiniMax offers an OpenAI-compatible API with models like MiniMax-M2.7 (1M context) and MiniMax-M2.7-highspeed. Changes: - Add MINIMAX enum value to ModelType and minimaxApiKey to KeyConfiguration - Add MINIMAX_API_KEY/MINIMAX_API_MODEL environment variables - Configure MiniMax via OpenAI-compatible basePath (api.minimax.io/v1) - Add MiniMax embeddings support (embo-01 model) - Add MiniMax tab in KeySettings UI with model selector - Pass x-minimax-api-key header in all API calls - Update env-vars documentation and README - Add 31 tests (unit + integration) covering configuration, model creation, embeddings, and end-to-end provider flow
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 AI as a first-class LLM provider alongside OpenAI and Azure OpenAI. MiniMax offers an OpenAI-compatible API with models like MiniMax-M2.7 (1M context window) and MiniMax-M2.7-highspeed.
Changes
Backend
MINIMAXenum value toModelTypeandminimaxApiKeyfield toKeyConfigurationinterfaceMINIMAX_API_KEY/MINIMAX_API_MODELenvironment variables inconst.tsconfiguration.ts(headers + env vars + validation)basePath(https://api.minimax.io/v1) inopenai.tsembo-01model inembeddings.tsFrontend
KeySettings.tsxwith API key input and model selector (M2.7 / M2.7-highspeed)x-minimax-api-keyheader in all API calls (chat, query, embedding)Documentation
README.mdMINIMAX_API_KEYandMINIMAX_API_MODELtodoc/env-vars.mdTests (31 total)
types.test.ts(4),configuration.test.ts(8),openai.test.ts(7),embeddings.test.ts(4)integration.test.ts(5) — end-to-end config → model/embeddings flowHow to use
Via environment variables
Via UI
Click API Key Settings → select the MiniMax tab → enter your API key and choose a model.
Test plan
npx jest)