Fix MiniMax text-to-video: use ImageToVideo with no first frame instead of a node Comfy does not install.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-06 07:42:47 -05:00
co-authored by Cursor
parent d4b49df05a
commit 069108ae44
+3 -3
View File
@@ -267,14 +267,14 @@ function promptForNode(classType: string, useRefs: boolean, actionPrompt: string
function applyMinimaxTextToVideo(graph: WorkflowGraph, params: GenerateParams, width: number, height: number) { function applyMinimaxTextToVideo(graph: WorkflowGraph, params: GenerateParams, width: number, height: number) {
const node = graph['105:104'] const node = graph['105:104']
if (node) { if (node) {
node.class_type = 'MiniMaxH3TextToVideo' // MiniMax H3 has no TextToVideo class. T2V is ImageToVideo with first_frame disconnected.
node.class_type = 'MiniMaxH3ImageToVideo'
node._meta = { title: 'MiniMax H3 Text to Video' } node._meta = { title: 'MiniMax H3 Text to Video' }
delete node.inputs.first_frame delete node.inputs.first_frame
delete node.inputs.last_frame
node.inputs.prompt = params.prompt node.inputs.prompt = params.prompt
node.inputs.width = width node.inputs.width = width
node.inputs.height = height node.inputs.height = height
if (params.sound !== false && graph['105:24']) node.inputs.audio_vae = ['105:24', 0]
else delete node.inputs.audio_vae
} }
delete graph['114'] delete graph['114']
delete graph['119'] delete graph['119']