Skip to content

Commit

Permalink
update getServiceURl method
Browse files Browse the repository at this point in the history
  • Loading branch information
au-re committed Oct 15, 2023
1 parent 703f4c9 commit 89f5189
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/@pufflig/ps-sdk/src/constants.ts
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit 89f5189

Please sign in to comment.