Integrate ComfyUI agents and video workflows
This commit is contained in:
@@ -1329,7 +1329,13 @@ export const buildVideoCreateRequestEnvelope = (
|
||||
stream: false,
|
||||
jobMode: false,
|
||||
rawMode: false,
|
||||
jsonBody: files.length > 0 ? undefined : { model: inputs.model, prompt: modeState.videosPrompt },
|
||||
jsonBody: files.length > 0 ? undefined : {
|
||||
model: inputs.model,
|
||||
prompt: modeState.videosPrompt,
|
||||
ratio: '16:9',
|
||||
fps: 24,
|
||||
duration: 5,
|
||||
},
|
||||
multipartFields: files.length > 0 ? { model: inputs.model, prompt: modeState.videosPrompt } : undefined,
|
||||
multipartFiles: files.length > 0 ? files : undefined,
|
||||
});
|
||||
@@ -1339,7 +1345,7 @@ export const buildVideoInspectRequestEnvelope = (
|
||||
modeState: ModelTesterModeState,
|
||||
): TesterProxyEnvelope => ({
|
||||
method: inputs.videoInspectAction === 'delete' ? 'DELETE' : 'GET',
|
||||
path: `/v1/videos/${encodeURIComponent(modeState.videosInspectId.trim())}`,
|
||||
path: `/v1/videos/${encodeURIComponent(modeState.videosInspectId.trim())}?model=${encodeURIComponent(inputs.model)}`,
|
||||
requestKind: 'empty',
|
||||
stream: false,
|
||||
jobMode: false,
|
||||
|
||||
Reference in New Issue
Block a user