From dc0a77263578486fac77204c1e48bdae2422b89b Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 23 Jun 2023 12:36:46 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20chore(endpoints.py):=20reorder?= =?UTF-8?q?=20endpoints=20to=20keep=20backwards=20compatibility=20The=20`/?= =?UTF-8?q?predict/{flow=5Fid}`=20endpoint=20was=20moved=20above=20the=20`?= =?UTF-8?q?/process/{flow=5Fid}`=20endpoint=20to=20maintain=20backwards=20?= =?UTF-8?q?compatibility=20with=20existing=20clients.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/endpoints.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/langflow/api/v1/endpoints.py b/src/backend/langflow/api/v1/endpoints.py index c9d6e807e..f18e3056d 100644 --- a/src/backend/langflow/api/v1/endpoints.py +++ b/src/backend/langflow/api/v1/endpoints.py @@ -24,6 +24,8 @@ def get_all(): return build_langchain_types_dict() +# For backwards compatibility we will keep the old endpoint +@router.post("/predict/{flow_id}", response_model=ProcessResponse) @router.post("/process/{flow_id}", response_model=ProcessResponse) async def process_flow( flow_id: str,