fix the parameters 422 issue with the run_workflow endpoint (#2985)

This commit is contained in:
Shuchang Zheng
2025-07-18 12:02:32 -07:00
committed by GitHub
parent f5d7639de8
commit f9814bd54b

View File

@@ -316,7 +316,7 @@ class WorkflowRunRequest(BaseModel):
workflow_id: str = Field(
description="ID of the workflow to run. Workflow ID starts with `wpid_`.", examples=["wpid_123"]
)
parameters: dict[str, Any] = Field(default={}, description="Parameters to pass to the workflow")
parameters: dict[str, Any] | None = Field(default=None, description="Parameters to pass to the workflow")
title: str | None = Field(default=None, description="The title for this workflow run")
proxy_location: ProxyLocation | None = Field(
default=ProxyLocation.RESIDENTIAL,