migrate generate_script -> run_with (BE) (#3550)

This commit is contained in:
Jonathan Dobson
2025-09-29 15:14:15 -04:00
committed by GitHub
parent e04f81fcda
commit 2a3cc647a5
10 changed files with 63 additions and 33 deletions

View File

@@ -52,7 +52,7 @@ class TaskV2(BaseModel):
max_screenshot_scrolls: int | None = Field(default=None, alias="max_screenshot_scrolling_times")
extra_http_headers: dict[str, str] | None = None
browser_address: str | None = None
generate_script: bool = False
run_with: str | None = None
created_at: datetime
modified_at: datetime
@@ -156,7 +156,7 @@ class TaskV2Request(BaseModel):
max_screenshot_scrolls: int | None = None
extra_http_headers: dict[str, str] | None = None
browser_address: str | None = None
generate_script: bool = False
run_with: str | None = None
ai_fallback: bool = False
@field_validator("url", "webhook_callback_url", "totp_verification_url")