feat: add per-modality default model configuration#89
Merged
RyanLee-Dev merged 1 commit intoMiniMax-AI:mainfrom Apr 11, 2026
Merged
feat: add per-modality default model configuration#89RyanLee-Dev merged 1 commit intoMiniMax-AI:mainfrom
RyanLee-Dev merged 1 commit intoMiniMax-AI:mainfrom
Conversation
326b01c to
46427ef
Compare
Allow users to set default models in config.json for each modality,
avoiding the need to pass --model on every command.
New config keys:
- default_text_model (default-text-model)
- default_speech_model (default-speech-model)
- default_video_model (default-video-model)
- default_music_model (default-music-model)
Resolution priority:
1. Explicit --model flag (highest)
2. Config file default
3. Hardcoded fallback (lowest)
Special cases:
- Video: auto-switch flags (--lastFrame, --subjectImage) take
priority over config defaults
- Music Cover: defaultMusicModel only applies if the value is a
valid cover model name, otherwise key-type default is preserved
Hardcoded defaults:
- text: MiniMax-M2.7
- speech: speech-2.8-hd
- video: MiniMax-Hailuo-2.3
- music: music-2.6-free (pay-as-you-go) / music-2.6 (token plan)
Tests: 97 pass (24 new tests across 6 test files)
46427ef to
9ee6fe9
Compare
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
Allow users to set default models in
config.jsonfor each modality, avoiding the need to pass--modelon every command.New Config Keys
default_text_modeldefault-text-modelMiniMax-M2.7default_speech_modeldefault-speech-modelspeech-2.8-hddefault_video_modeldefault-video-modelMiniMax-Hailuo-2.3default_music_modeldefault-music-modelResolution Priority
--modelflag (highest)Special Cases
--lastFrame,--subjectImage) still take priority over config defaults.defaultMusicModelonly applies if the value is a valid cover model name (music-cover/music-cover-free), otherwise the key-type-based default is preserved.Usage
Tests