From 89f5189e4ccf2c1f175a21899f4797e2dd4e1eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Sun, 15 Oct 2023 18:42:51 +0200 Subject: [PATCH] update getServiceURl method --- packages/@pufflig/ps-sdk/src/constants.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/@pufflig/ps-sdk/src/constants.ts b/packages/@pufflig/ps-sdk/src/constants.ts index 4eebb91..fb4a43a 100644 --- a/packages/@pufflig/ps-sdk/src/constants.ts +++ b/packages/@pufflig/ps-sdk/src/constants.ts @@ -1,8 +1,5 @@ export const SERVICE_URL = "https://api.prompt.studio/api/v1/completion"; export const getServiceUrl = () => { - if (process.env.PROMPT_STUDIO_RUNTIME === "local") { - return "http://localhost:8088/api/v1/completion"; - } - return SERVICE_URL; + return process.env.PROMPT_STUDIO_SERVICE_URL || SERVICE_URL; };