Route engine yue2 through a standalone job helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-14 18:45:57 -05:00
co-authored by Cursor
parent 85ef087364
commit 5f68205f01
6 changed files with 161 additions and 0 deletions
+2
View File
@@ -101,6 +101,7 @@ function buildAce15Workflow(params: MusicWorkflowParams): WorkflowGraph {
export function buildMusicWorkflow(params: MusicWorkflowParams): WorkflowGraph {
const engine = params.engine || 'ace-step'
if (engine === 'yue') throw new Error('YuE requires the standalone YuEGP backend.')
if (engine === 'yue2') throw new Error('YuE2 requires the standalone YuE2 backend.')
if (engine === 'ace-step-1.5') return buildAce15Workflow(params)
return buildAceV1Workflow(params)
}
@@ -108,6 +109,7 @@ export function buildMusicWorkflow(params: MusicWorkflowParams): WorkflowGraph {
export async function assertMusicEngineNodes(engine: MusicEngine | undefined) {
const { comfyHasClassType } = await import('~/server/utils/comfy')
if (engine === 'yue') throw new Error('YuE cannot run on Comfy.')
if (engine === 'yue2') throw new Error('YuE2 cannot run on Comfy.')
if (engine === 'ace-step-1.5') {
const present = await comfyHasClassType('TextEncodeAceStepAudio1.5')
if (present === false) {