feat: add MiniMax prompt enhancer node#466
Open
Octopus (octo-patch) wants to merge 1 commit intoLightricks:masterfrom
Open
feat: add MiniMax prompt enhancer node#466Octopus (octo-patch) wants to merge 1 commit intoLightricks:masterfrom
Octopus (octo-patch) wants to merge 1 commit intoLightricks:masterfrom
Conversation
- Add MiniMaxPromptEnhancer ComfyUI node that calls MiniMax chat completions API to cinematically enhance video generation prompts - Add MINIMAX_API_KEY environment variable support via api_key input - Support both T2V and I2V cinematic prompt enhancement modes - Support MiniMax-M2.7 and MiniMax-M2.7-highspeed models - Strip <think>…</think> reasoning tokens from MiniMax-M2.7 responses - Add unit tests (20 tests, all passing) - Add pyproject.toml with pytest configuration API reference: - https://platform.minimax.io/docs/api-reference/text-openai-api
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
MiniMaxPromptEnhancerComfyUI node that calls the MiniMax chat completions API to cinematically enhance LTX-Video generation promptsprompt_enhancer_utils.pyMiniMax-M2.7(default) andMiniMax-M2.7-highspeedmodels<think>…</think>reasoning tokens that MiniMax-M2.7 may emitWhy
The existing
LTXVPromptEnhancerLoader+LTXVPromptEnhancernodes require downloading and running Llama 3.2 locally (several GB, significant VRAM). This new node lets users get high-quality cinematic prompt enhancement via the MiniMax API without any local model loading, similar in spirit to howGemmaAPITextEncodeprovides an API alternative to local Gemma.Usage
MINIMAX_API_KEY(get one at https://platform.minimax.io/)enhanced_promptoutput to a CLIP text encode nodeAPI Reference
Test plan
python -m pytest tests/)api node/text/LightrickscategoryNODE_CLASS_MAPPINGSandnodes_registry.py