auto-save 2026-05-17 21:09 (~4)

This commit is contained in:
2026-05-17 21:09:20 +08:00
parent 096f201470
commit 252cdf441d
4 changed files with 117 additions and 50 deletions

View File

@@ -986,6 +986,9 @@ export async function generateSubjectAssets(
size?: AssetSize
source_frame_indices?: number[]
views?: string[]
subject_style?: "transparent_human" | "source_actor"
reconstruction_mode?: "same" | "similar"
prompt?: string
} = {},
): Promise<Job> {
const res = await fetch(`${API_BASE}/jobs/${jobId}/frames/${frameIdx}/elements/${elementId}/subject-assets`, {
@@ -998,6 +1001,9 @@ export async function generateSubjectAssets(
size: body.size ?? "source",
source_frame_indices: body.source_frame_indices ?? null,
views: body.views ?? null,
subject_style: body.subject_style ?? "transparent_human",
reconstruction_mode: body.reconstruction_mode ?? "same",
prompt: body.prompt ?? "",
}),
})
if (!res.ok) {