feat(short-drama-agent-front): 支持母版复用并优化生成交互

This commit is contained in:
GJ committed 2026-10-12 15:22:03 +08:00
1 parent 49fb9c7a27
commit ee5e49957a
28 files changed
+634 -326

No files matched your search

+6 -1
View File
@@ -1,6 +1,7 @@
import { request } from '../../lib/http'
import type {
IdentityImagePreview,
IdentityImageGenerationStart,
IdentityValidationResult,
StableAnchorQualityInput,
StableAnchorQualityResult,
@@ -74,7 +75,11 @@ export const subjectIdentityApi = {
listImages: (subjectId: string, signal?: AbortSignal) =>
request<IdentityImage[]>(`${identityPath(subjectId)}/images`, { signal }),
generateImage: (subjectId: string, input: GenerateIdentityImageInput) =>
request<IdentityImage>(`${identityPath(subjectId)}/images`, { method: 'POST', body: input, timeoutMs: 0 }),
request<IdentityImageGenerationStart>(`${identityPath(subjectId)}/images`, {
method: 'POST',
body: input,
timeoutMs: 0
}),
/**
* 读取与实际生图同源的输入预览,道具可能执行已确认的结构模型编译。
* @param subjectId 正式主体 ID