user defined browser header (#2752)
Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user