Start Sidecar Qwen VL from Recommend when the prompt enhancer is offline.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { getSidecarImageHost } from '~/server/utils/imageComfy'
|
||||
import { ensureSidecarReady } from '~/server/utils/imageComfyLifecycle'
|
||||
import { buildVisionPromptWorkflow } from '~/server/utils/promptWorkflow'
|
||||
import { normalizeShotScript } from '~/utils/parseRecommend'
|
||||
|
||||
@@ -220,6 +221,10 @@ export async function runPromptRecommend(job: PromptJob, params: {
|
||||
mode: string
|
||||
}) {
|
||||
job.status = 'running'
|
||||
job.message = 'Checking Sidecar Qwen VL…'
|
||||
await ensureSidecarReady((status) => {
|
||||
job.message = status.message
|
||||
})
|
||||
job.message = 'Uploading still to Sidecar Qwen VL…'
|
||||
const imageName = await uploadPromptImage(params.image, job.id)
|
||||
job.message = 'Qwen VL is reading the still…'
|
||||
|
||||
Reference in New Issue
Block a user