mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): put all validatoin run data into single object
This commit is contained in:
@@ -136,10 +136,11 @@ export const useEnqueueWorkflows = () => {
|
||||
|
||||
assert(workflow.id, 'Workflow without ID cannot be used for API validation run');
|
||||
|
||||
batchConfig.published_workflow_id = workflow.id;
|
||||
batchConfig.is_api_validation_run = true;
|
||||
batchConfig.api_input_fields = api_input_fields;
|
||||
batchConfig.api_output_fields = api_output_fields;
|
||||
batchConfig.validation_run_data = {
|
||||
workflow_id: workflow.id,
|
||||
input_fields: api_input_fields,
|
||||
output_fields: api_output_fields,
|
||||
};
|
||||
|
||||
// If the batch is an API validation run, we only want to run it once
|
||||
batchConfig.batch.runs = 1;
|
||||
|
||||
Reference in New Issue
Block a user