From d17f957411f19f550d379e70d60bb943f8af2742 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Tue, 18 Jun 2024 19:03:55 -0300 Subject: [PATCH] refactor: Remove unnecessary dependencies in simplified_run_flow endpoint --- src/backend/base/langflow/api/v1/endpoints.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/base/langflow/api/v1/endpoints.py b/src/backend/base/langflow/api/v1/endpoints.py index 5cf8a262b..65d00ed60 100644 --- a/src/backend/base/langflow/api/v1/endpoints.py +++ b/src/backend/base/langflow/api/v1/endpoints.py @@ -120,12 +120,10 @@ 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( - db: Annotated[Session, Depends(get_session)], 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), - session_service: SessionService = Depends(get_session_service), ): """ Executes a specified flow by ID with input customization, performance enhancements through caching, and optional data streaming. @@ -246,7 +244,6 @@ async def webhook_run_flow( logger.debug("Starting background task") background_tasks.add_task( simple_run_flow, - db=db, flow=flow, input_request=input_request, )