feat(short-drama-agent-front): 接入图片持续授权与视频费用审计
This commit is contained in:
1 parent
3915566994
commit
1e9ef33d1d
39 files changed
+3442
-51
No files matched your search
@@ -29,6 +29,14 @@ export const generationConfigApi = {
|
||||
request<CreativeProfile | null>(`${projectPath(projectId)}/creative-profile`, { signal }),
|
||||
saveProfile: (projectId: string, input: CreativeProfileInput) =>
|
||||
request<CreativeProfile>(`${projectPath(projectId)}/creative-profile`, { method: 'PUT', body: input }),
|
||||
/**
|
||||
* 解析实际项目及目标覆盖配置,显式选择时沿原优先级处理。
|
||||
* @param projectId 当前项目
|
||||
* @param mediaType 图片或视频
|
||||
* @param input 显式参数与正式目标
|
||||
* @param signal 取消旧表单读取
|
||||
* @returns 最终供应方、型号及参数
|
||||
*/
|
||||
resolve: (
|
||||
projectId: string,
|
||||
mediaType: GenerationMediaType,
|
||||
@@ -37,11 +45,13 @@ export const generationConfigApi = {
|
||||
model?: string
|
||||
options?: Record<string, unknown>
|
||||
target?: { targetType: GenerationOverrideTargetType; targetId: string }
|
||||
}
|
||||
},
|
||||
signal?: AbortSignal
|
||||
) =>
|
||||
request<ResolvedGenerationConfig>(`${projectPath(projectId)}/generation-config/${mediaType}/resolve`, {
|
||||
method: 'POST',
|
||||
body: input
|
||||
body: input,
|
||||
signal
|
||||
}),
|
||||
override: (
|
||||
projectId: string,
|
||||
|
||||
Reference in new issue
Block a user