user defined browser header (#2752)

Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-06-19 00:42:34 -07:00
committed by GitHub
parent 2776475ca3
commit df5f40bdb9
15 changed files with 132 additions and 10 deletions

View File

@@ -271,7 +271,10 @@ class TaskRunRequest(BaseModel):
description=MODEL_CONFIG,
examples=None,
)
extra_http_headers: dict[str, str] | None = Field(
default=None,
description="The extra HTTP headers for the requests in browser.",
)
publish_workflow: bool = Field(
default=False,
description="Whether to publish this task as a reusable workflow. Only available for skyvern-2.0.",
@@ -334,6 +337,10 @@ class WorkflowRunRequest(BaseModel):
default=None,
description="Scroll down n times to get the merged screenshot of the page after taking an action. When it's None or 0, it takes the current viewpoint screenshot.",
)
extra_http_headers: dict[str, str] | None = Field(
default=None,
description="The extra HTTP headers for the requests in browser.",
)
@field_validator("webhook_url", "totp_url")
@classmethod