shu/make timeout optional field in create browser session (#2348)

This commit is contained in:
Shuchang Zheng
2025-05-14 18:20:56 -07:00
committed by GitHub
parent f4d2e415d2
commit 847ddacebd
2 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ DEFAULT_TIMEOUT = 60
class CreateBrowserSessionRequest(BaseModel):
timeout: int = Field(
timeout: int | None = Field(
default=DEFAULT_TIMEOUT,
description=f"Timeout in minutes for the session. Timeout is applied after the session is started. Must be between {MIN_TIMEOUT} and {MAX_TIMEOUT}. Defaults to {DEFAULT_TIMEOUT}.",
ge=MIN_TIMEOUT,