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',