From 56290ceff4c1ff8618a3d536e5780ff0dbbb418e Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 23 Jun 2024 01:42:19 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(endpoints.py):=20remove=20dupli?= =?UTF-8?q?cate=20declaration=20of=20background=5Ftasks=20parameter=20in?= =?UTF-8?q?=20simplified=5Frun=5Fflow=20function=20definition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/api/v1/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/api/v1/endpoints.py b/src/backend/base/langflow/api/v1/endpoints.py index 668f10482..ff154534e 100644 --- a/src/backend/base/langflow/api/v1/endpoints.py +++ b/src/backend/base/langflow/api/v1/endpoints.py @@ -125,12 +125,12 @@ async def simple_run_flow( @router.post("/run/{flow_id_or_name}", response_model=RunResponse, response_model_exclude_none=True) async def simplified_run_flow( + background_tasks: BackgroundTasks, flow: Annotated[Flow, Depends(get_flow_by_id_or_endpoint_name)], input_request: SimplifiedAPIRequest = SimplifiedAPIRequest(), stream: bool = False, api_key_user: User = Depends(api_key_security), 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.