feat: add MiniMax as direct LLM provider for podcast generation#4
Open
octo-patch wants to merge 1 commit intopanyanyany:masterfrom
Open
feat: add MiniMax as direct LLM provider for podcast generation#4octo-patch wants to merge 1 commit intopanyanyany:masterfrom
octo-patch wants to merge 1 commit intopanyanyany:masterfrom
Conversation
Add multi-provider LLM support with MiniMax M2.7 as a first-class option. Users who already have MINIMAX_TOKEN for TTS can reuse it for LLM by setting LLM_PROVIDER=minimax — no extra API key needed. Changes: - New src/utils/llm.ts: provider preset system with auto-detection, temperature clamping (MiniMax requires >0), and think-tag stripping - Updated src/utils/xai.ts: uses provider config instead of raw env vars - Updated .env.example: documented LLM_PROVIDER and MINIMAX_API_KEY - Updated README.md & README.zh-CN.md: LLM provider table with MiniMax docs - 31 unit tests + 3 integration tests (all passing)
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
Adds MiniMax M2.7 as a first-class LLM provider alongside OpenRouter and xAI. Since Twocast already uses MiniMax for TTS, users can now reuse the same MINIMAX_TOKEN for LLM by simply setting LLM_PROVIDER=minimax.
What changed
Why MiniMax?
Test plan
7 files changed, 557 additions(+), 27 deletions(-)