default code gen to true for prompt-initiated workflows (#3483)

This commit is contained in:
Jonathan Dobson
2025-09-19 15:15:19 -04:00
committed by GitHub
parent 71119d4df3
commit b104776498
2 changed files with 6 additions and 0 deletions

View File

@@ -567,6 +567,8 @@ async def create_workflow_from_prompt(
extra_http_headers=data.extra_http_headers,
max_iterations=x_max_iterations_override,
max_steps=x_max_steps_override,
generate_script=data.generate_script,
ai_fallback=data.ai_fallback,
)
except Exception as e:
LOG.error("Failed to create workflow from prompt", exc_info=True, organization_id=organization.organization_id)

View File

@@ -673,6 +673,8 @@ class WorkflowService:
extra_http_headers: dict[str, str] | None = None,
max_iterations: int | None = None,
max_steps: int | None = None,
generate_script: bool = True,
ai_fallback: bool = True,
) -> Workflow:
metadata_prompt = prompt_engine.load_prompt(
"conversational_ui_goal",
@@ -714,6 +716,8 @@ class WorkflowService:
totp_identifier=totp_identifier,
max_screenshot_scrolling_times=max_screenshot_scrolling_times,
extra_http_headers=extra_http_headers,
generate_script=generate_script,
ai_fallback=ai_fallback,
)
return new_workflow