feat: add MiniMax as a first-class LLM and TTS provider#2296
Open
octo-patch wants to merge 1 commit intoarc53:mainfrom
Open
feat: add MiniMax as a first-class LLM and TTS provider#2296octo-patch wants to merge 1 commit intoarc53:mainfrom
octo-patch wants to merge 1 commit intoarc53:mainfrom
Conversation
Add MiniMax (https://www.minimaxi.com) as a native provider for both LLM inference and text-to-speech, giving users access to MiniMax-M2.5 and MiniMax-M2.5-highspeed models (204K context window) via the OpenAI-compatible API at api.minimax.io. Changes: - LLM provider (`application/llm/minimax.py`): extends OpenAILLM with MiniMax base URL, temperature clamping to (0, 1], and response_format passthrough disabled - TTS provider (`application/tts/minimax_tts.py`): speech-2.8-hd model with hex-to-base64 audio decoding - Model registry: MiniMax-M2.5 and MiniMax-M2.5-highspeed with tool calling and image attachment support - Settings: MINIMAX_API_KEY environment variable with normalizer - Setup scripts: MiniMax option in both bash and PowerShell wizards - Documentation: cloud-providers.mdx table and README feature list - Tests: 10 LLM unit tests + 4 TTS unit tests, all passing
|
Someone is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
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 native provider for both LLM inference and text-to-speech in DocsGPT, giving users access to MiniMax-M2.5 and MiniMax-M2.5-highspeed models (204K context window) via the OpenAI-compatible API.
What's included
application/llm/minimax.py): ExtendsOpenAILLMwith MiniMax's base URL (https://api.minimax.io/v1), temperature clamping to the valid range (0, 1], and structured output passthrough disabledapplication/tts/minimax_tts.py): MiniMax speech-2.8-hd model with hex-to-base64 audio decodingMiniMax-M2.5andMiniMax-M2.5-highspeedwith tool calling and image attachment supportMINIMAX_API_KEYenvironment variable with normalizer validationFiles changed
application/llm/minimax.pyapplication/tts/minimax_tts.pyapplication/core/settings.pyMINIMAX_API_KEYapplication/core/model_settings.pyMINIMAXtoModelProviderenumapplication/core/model_configs.pyMINIMAX_MODELSdefinitionsapplication/core/model_utils.pyapplication/llm/llm_creator.pyMiniMaxLLMin factoryapplication/tts/tts_creator.pyMiniMaxTTSin factory.env-templateMINIMAX_API_KEYsetup.sh/setup.ps1docs/content/Models/cloud-providers.mdxREADME.mdtests/llm/test_minimax_llm.pytests/tts/test_minimax_tts.pyTest plan
pytest tests/llm/test_minimax_llm.py)pytest tests/tts/test_minimax_tts.py)LLMCreator.llms['minimax']correctly resolves toMiniMaxLLM