From 9ad9af468b847e0566cf7b57a00d910d82e7c7b0 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 19:03:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E9=A6=96=E5=B8=A7?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E7=94=9F=E6=88=90=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/production/api.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/features/production/api.ts b/src/features/production/api.ts index b3bf1d7..f597956 100644 --- a/src/features/production/api.ts +++ b/src/features/production/api.ts @@ -136,9 +136,12 @@ export const productionApi = { request(`${shotPath(shotId)}/keyframes`, { signal }), keyframeSpec: (shotId: string, signal?: AbortSignal) => request(`${shotPath(shotId)}/keyframe-spec`, { signal }), - /** 预览最终参考图规划与 Provider Prompt,不创建首帧任务。 */ - previewKeyframe: (shotId: string) => - request(`${shotPath(shotId)}/keyframe/preview`, { method: 'POST', body: {} }), + /** 按本次请求选择的图片模型与参数预览最终输入,不创建首帧任务。 */ + previewKeyframe: (shotId: string, input: Pick) => + request(`${shotPath(shotId)}/keyframe/preview`, { + method: 'POST', + body: input + }), generateKeyframe: (shotId: string, input: GenerateKeyframeInput) => request(`${shotPath(shotId)}/keyframe`, { method: 'POST',