turn on run_with code and ai fallback by default for task v2 (#3593)
This commit is contained in:
@@ -147,6 +147,9 @@ function PromptBox() {
|
|||||||
proxy_location: proxyLocation,
|
proxy_location: proxyLocation,
|
||||||
totp_identifier: totpIdentifier,
|
totp_identifier: totpIdentifier,
|
||||||
max_screenshot_scrolls: maxScreenshotScrolls,
|
max_screenshot_scrolls: maxScreenshotScrolls,
|
||||||
|
publish_workflow: publishWorkflow,
|
||||||
|
run_with: "code",
|
||||||
|
ai_fallback: true,
|
||||||
extracted_information_schema: dataSchema
|
extracted_information_schema: dataSchema
|
||||||
? (() => {
|
? (() => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -2136,6 +2136,7 @@ function convert(workflow: WorkflowApiResponse): WorkflowCreateYAMLRequest {
|
|||||||
blocks: convertBlocksToBlockYAML(workflow.workflow_definition.blocks),
|
blocks: convertBlocksToBlockYAML(workflow.workflow_definition.blocks),
|
||||||
},
|
},
|
||||||
is_saved_task: workflow.is_saved_task,
|
is_saved_task: workflow.is_saved_task,
|
||||||
|
status: workflow.status,
|
||||||
run_with: workflow.run_with,
|
run_with: workflow.run_with,
|
||||||
cache_key: workflow.cache_key,
|
cache_key: workflow.cache_key,
|
||||||
ai_fallback: workflow.ai_fallback ?? undefined,
|
ai_fallback: workflow.ai_fallback ?? undefined,
|
||||||
|
|||||||
@@ -524,6 +524,7 @@ export type WorkflowApiResponse = {
|
|||||||
totp_verification_url: string | null;
|
totp_verification_url: string | null;
|
||||||
totp_identifier: string | null;
|
totp_identifier: string | null;
|
||||||
max_screenshot_scrolls: number | null;
|
max_screenshot_scrolls: number | null;
|
||||||
|
status: string | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
modified_at: string;
|
modified_at: string;
|
||||||
deleted_at: string | null;
|
deleted_at: string | null;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export type WorkflowCreateYAMLRequest = {
|
|||||||
is_saved_task?: boolean;
|
is_saved_task?: boolean;
|
||||||
max_screenshot_scrolls?: number | null;
|
max_screenshot_scrolls?: number | null;
|
||||||
extra_http_headers?: Record<string, string> | null;
|
extra_http_headers?: Record<string, string> | null;
|
||||||
|
status?: string | null;
|
||||||
run_with?: string | null;
|
run_with?: string | null;
|
||||||
cache_key?: string | null;
|
cache_key?: string | null;
|
||||||
ai_fallback?: boolean;
|
ai_fallback?: boolean;
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ const useWorkflowSave = () => {
|
|||||||
blocks: saveData.blocks,
|
blocks: saveData.blocks,
|
||||||
},
|
},
|
||||||
is_saved_task: saveData.workflow.is_saved_task,
|
is_saved_task: saveData.workflow.is_saved_task,
|
||||||
|
status: saveData.workflow.status,
|
||||||
run_sequentially: saveData.settings.runSequentially,
|
run_sequentially: saveData.settings.runSequentially,
|
||||||
sequential_key: saveData.settings.sequentialKey,
|
sequential_key: saveData.settings.sequentialKey,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user