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) =>