feat: add MiniMax as fourth LLM provider#29
Open
octo-patch wants to merge 1 commit intoSamurAIGPT:mainfrom
Open
feat: add MiniMax as fourth LLM provider#29octo-patch wants to merge 1 commit intoSamurAIGPT:mainfrom
octo-patch wants to merge 1 commit intoSamurAIGPT:mainfrom
Conversation
Add MiniMax AI as an alternative LLM provider alongside OpenAI, Groq, and Google Gemini. MiniMax offers an OpenAI-compatible API, so it integrates seamlessly through the existing chat completions path. Changes: - Add 'minimax' to LLM_PROVIDER validation and client factory in config.py - Register MiniMax-M2.7 as default model with OpenAI SDK + custom base_url - Update .env.example with MINIMAX_API_KEY and MINIMAX_MODEL settings - Update README.md with MiniMax in provider table, features, and config - Add 18 unit tests covering config validation, script generation, video search query, and .env.example verification - Add 3 integration tests verifying real MiniMax API responses
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 fourth LLM provider alongside OpenAI, Groq, and Google Gemini for script generation and video search query extraction.
MiniMax offers an OpenAI-compatible API (
https://api.minimax.io/v1), so it integrates seamlessly through the existingclient.chat.completions.create()code path — no new SDK dependency required.Changes
utility/config.py— AddminimaxtoLLM_PROVIDERvalidation,MINIMAX_API_KEY/MINIMAX_MODELenv checks, andget_llm_client()factory (OpenAI SDK with custombase_url).env.example— AddMINIMAX_API_KEYandMINIMAX_MODEL=MiniMax-M2.7settingsREADME.md— Add MiniMax to features list, API key table, and provider selection docstests/test_minimax_provider.py— 18 unit tests covering config validation, script generator routing, video search query routing, and .env.example verificationtests/test_minimax_integration.py— 3 integration tests verifying real MiniMax API responses (auto-skip whenMINIMAX_API_KEYnot set)Usage
Available models:
MiniMax-M2.7(default, 204K context),MiniMax-M2.7-highspeedTest plan
python -m pytest tests/test_minimax_provider.py)python -m pytest tests/test_minimax_integration.py)