🔧 (endpoints.py): remove duplicate declaration of background_tasks parameter in simplified_run_flow function definition
This commit is contained in:
parent
6577a91c59
commit
56290ceff4
1 changed files with 1 additions and 1 deletions
|
|
@ -125,12 +125,12 @@ async def simple_run_flow(
|
||||||
|
|
||||||
@router.post("/run/{flow_id_or_name}", response_model=RunResponse, response_model_exclude_none=True)
|
@router.post("/run/{flow_id_or_name}", response_model=RunResponse, response_model_exclude_none=True)
|
||||||
async def simplified_run_flow(
|
async def simplified_run_flow(
|
||||||
|
background_tasks: BackgroundTasks,
|
||||||
flow: Annotated[Flow, Depends(get_flow_by_id_or_endpoint_name)],
|
flow: Annotated[Flow, Depends(get_flow_by_id_or_endpoint_name)],
|
||||||
input_request: SimplifiedAPIRequest = SimplifiedAPIRequest(),
|
input_request: SimplifiedAPIRequest = SimplifiedAPIRequest(),
|
||||||
stream: bool = False,
|
stream: bool = False,
|
||||||
api_key_user: User = Depends(api_key_security),
|
api_key_user: User = Depends(api_key_security),
|
||||||
telemetry_service: "TelemetryService" = Depends(get_telemetry_service),
|
telemetry_service: "TelemetryService" = Depends(get_telemetry_service),
|
||||||
background_tasks: BackgroundTasks = BackgroundTasks(),
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Executes a specified flow by ID with input customization, performance enhancements through caching, and optional data streaming.
|
Executes a specified flow by ID with input customization, performance enhancements through caching, and optional data streaming.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue