default code gen to true for prompt-initiated workflows (#3483)
This commit is contained in:
@@ -567,6 +567,8 @@ async def create_workflow_from_prompt(
|
|||||||
extra_http_headers=data.extra_http_headers,
|
extra_http_headers=data.extra_http_headers,
|
||||||
max_iterations=x_max_iterations_override,
|
max_iterations=x_max_iterations_override,
|
||||||
max_steps=x_max_steps_override,
|
max_steps=x_max_steps_override,
|
||||||
|
generate_script=data.generate_script,
|
||||||
|
ai_fallback=data.ai_fallback,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.error("Failed to create workflow from prompt", exc_info=True, organization_id=organization.organization_id)
|
LOG.error("Failed to create workflow from prompt", exc_info=True, organization_id=organization.organization_id)
|
||||||
|
|||||||
@@ -673,6 +673,8 @@ class WorkflowService:
|
|||||||
extra_http_headers: dict[str, str] | None = None,
|
extra_http_headers: dict[str, str] | None = None,
|
||||||
max_iterations: int | None = None,
|
max_iterations: int | None = None,
|
||||||
max_steps: int | None = None,
|
max_steps: int | None = None,
|
||||||
|
generate_script: bool = True,
|
||||||
|
ai_fallback: bool = True,
|
||||||
) -> Workflow:
|
) -> Workflow:
|
||||||
metadata_prompt = prompt_engine.load_prompt(
|
metadata_prompt = prompt_engine.load_prompt(
|
||||||
"conversational_ui_goal",
|
"conversational_ui_goal",
|
||||||
@@ -714,6 +716,8 @@ class WorkflowService:
|
|||||||
totp_identifier=totp_identifier,
|
totp_identifier=totp_identifier,
|
||||||
max_screenshot_scrolling_times=max_screenshot_scrolling_times,
|
max_screenshot_scrolling_times=max_screenshot_scrolling_times,
|
||||||
extra_http_headers=extra_http_headers,
|
extra_http_headers=extra_http_headers,
|
||||||
|
generate_script=generate_script,
|
||||||
|
ai_fallback=ai_fallback,
|
||||||
)
|
)
|
||||||
|
|
||||||
return new_workflow
|
return new_workflow
|
||||||
|
|||||||
Reference in New Issue
Block a user