feat: 前端 Production 支持安全测试边界
This commit is contained in:
1 parent
6de0b56fd8
commit
4b396a8b47
1 file changed
+10
-2
@@ -68,10 +68,18 @@ export const productionApi = {
|
|||||||
/** 读取真实主资产完成状态,不能用任务提交回执代替。 */
|
/** 读取真实主资产完成状态,不能用任务提交回执代替。 */
|
||||||
status: (projectId: string, signal?: AbortSignal) =>
|
status: (projectId: string, signal?: AbortSignal) =>
|
||||||
request<ProjectProductionStatus>(`${projectPath(projectId)}/production/status`, { signal }),
|
request<ProjectProductionStatus>(`${projectPath(projectId)}/production/status`, { signal }),
|
||||||
startPipeline: (projectId: string, providers?: { imageProvider?: string; videoProvider?: string }) =>
|
startPipeline: (
|
||||||
|
projectId: string,
|
||||||
|
input?: {
|
||||||
|
imageProvider?: string
|
||||||
|
videoProvider?: string
|
||||||
|
stopAfter?: 'keyframes' | 'videoPrompts'
|
||||||
|
keyframeLimit?: number
|
||||||
|
}
|
||||||
|
) =>
|
||||||
request<ProductionPipelineResult>(`${projectPath(projectId)}/production/start`, {
|
request<ProductionPipelineResult>(`${projectPath(projectId)}/production/start`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: providers ?? {},
|
body: input ?? {},
|
||||||
timeoutMs: 0
|
timeoutMs: 0
|
||||||
}),
|
}),
|
||||||
promptReadiness: (projectId: string, force: boolean, signal?: AbortSignal) =>
|
promptReadiness: (projectId: string, force: boolean, signal?: AbortSignal) =>
|
||||||
|
|||||||
Reference in new issue
Block a user