🐛 fix(constants.tsx): correct typo in API URL path

The API URL path was incorrectly spelled as "/ap1/v1/predict" instead of "/api/v1/predict". This commit fixes the typo to ensure that the correct API endpoint is used.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-16 17:23:01 -03:00
commit 4d209ca21f

View file

@ -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"}}