From 4b396a8b47383b294da94f7bf38f3f321326cd40 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 20:21:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=20Production=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=AE=89=E5=85=A8=E6=B5=8B=E8=AF=95=E8=BE=B9?= =?UTF-8?q?=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/production/api.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/features/production/api.ts b/src/features/production/api.ts index f597956..52716ed 100644 --- a/src/features/production/api.ts +++ b/src/features/production/api.ts @@ -68,10 +68,18 @@ export const productionApi = { /** 读取真实主资产完成状态,不能用任务提交回执代替。 */ status: (projectId: string, signal?: AbortSignal) => request(`${projectPath(projectId)}/production/status`, { signal }), - startPipeline: (projectId: string, providers?: { imageProvider?: string; videoProvider?: string }) => + startPipeline: ( + projectId: string, + input?: { + imageProvider?: string + videoProvider?: string + stopAfter?: 'keyframes' | 'videoPrompts' + keyframeLimit?: number + } + ) => request(`${projectPath(projectId)}/production/start`, { method: 'POST', - body: providers ?? {}, + body: input ?? {}, timeoutMs: 0 }), promptReadiness: (projectId: string, force: boolean, signal?: AbortSignal) =>