From 4d209ca21f86a33b60e6336480e60603525321c9 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 16 Jun 2023 17:23:01 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(constants.tsx):=20correct=20?= =?UTF-8?q?typo=20in=20API=20URL=20path=20The=20API=20URL=20path=20was=20i?= =?UTF-8?q?ncorrectly=20spelled=20as=20"/ap1/v1/predict"=20instead=20of=20?= =?UTF-8?q?"/api/v1/predict".=20This=20commit=20fixes=20the=20typo=20to=20?= =?UTF-8?q?ensure=20that=20the=20correct=20API=20endpoint=20is=20used.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/constants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/constants.tsx b/src/frontend/src/constants.tsx index 8dc05e7d9..32bcfe5be 100644 --- a/src/frontend/src/constants.tsx +++ b/src/frontend/src/constants.tsx @@ -66,7 +66,7 @@ export const getPythonApiCode = (flow: FlowType): string => { BASE_API_URL = "${window.location.protocol}//${ window.location.host - }/ap1/v1/predict" + }/api/v1/predict" FLOW_ID = "${flowId}" # You can tweak the flow by adding a tweaks dictionary # e.g {"OpenAI-XXXXX": {"model_name": "gpt-4"}}