Keep YuE2 jobs live on the bench and wire target length to semantic tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-15 20:53:07 -05:00
co-authored by Cursor
parent 2ebc3066e6
commit 5694104226
13 changed files with 92 additions and 29 deletions
+6 -1
View File
@@ -48,11 +48,16 @@ export default defineEventHandler(async () => {
host: comfy.host || '',
queueRunning: queue.running,
queuePending: queue.pending,
asleep: Boolean(control?.asleep) && !comfyReachable,
asleep: Boolean(control?.asleep) && !comfyReachable && !control?.yue2?.busy,
processUp: Boolean(control?.process ?? control?.processUp),
lastActivityAt: control?.lastActivityAt || null,
stats: comfy.ok ? comfy.stats : undefined
},
yue2: {
configured: Boolean(control?.yue2?.configured),
busy: Boolean(control?.yue2?.busy),
backend: control?.yue2?.backend || 'yue2'
},
imageComfy: {
configured: imageConfigured,
ok: imageOk,
+1 -1
View File
@@ -65,7 +65,7 @@ export default defineEventHandler(async (event) => {
const duration = optionalNumber(body.duration)
if (duration != null) {
if (row.kind === 'music') {
if (!Number.isInteger(duration) || duration < 30 || duration > 150) throw createError({ statusCode: 400, statusMessage: 'YuE2 duration must be 30–150 seconds.' })
if (!Number.isInteger(duration) || duration < 15 || duration > 150) throw createError({ statusCode: 400, statusMessage: 'YuE2 target length must be 15–150 seconds.' })
payload.duration = duration
payload.musicEngine = 'yue2'
} else payload.duration = Math.min(120, Math.max(0.5, duration))