From 069108ae44c75ebd267d2ab16559c34b31026c58 Mon Sep 17 00:00:00 2001 From: Towsty Date: Sun, 6 Sep 2026 07:42:47 -0500 Subject: [PATCH] Fix MiniMax text-to-video: use ImageToVideo with no first frame instead of a node Comfy does not install. Co-authored-by: Cursor --- server/utils/workflow.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/utils/workflow.ts b/server/utils/workflow.ts index b74ff17..0a47a90 100644 --- a/server/utils/workflow.ts +++ b/server/utils/workflow.ts @@ -267,14 +267,14 @@ function promptForNode(classType: string, useRefs: boolean, actionPrompt: string function applyMinimaxTextToVideo(graph: WorkflowGraph, params: GenerateParams, width: number, height: number) { const node = graph['105:104'] 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' } delete node.inputs.first_frame + delete node.inputs.last_frame node.inputs.prompt = params.prompt node.inputs.width = width 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['119']