Edmon02 commited on
Commit
7846d3f
1 Parent(s): 46ce55c

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -21,7 +21,7 @@ app.get("/", (req, res) => {
21
  function getExternalUrl(spaceId) {
22
  try {
23
  const [username, spacename] = spaceId.split("/");
24
- return `https://${username}-${spacename.replace(/_/g, "-")}.hf.space/api/v1`;
25
  } catch (e) {
26
  return "";
27
  }
 
21
  function getExternalUrl(spaceId) {
22
  try {
23
  const [username, spacename] = spaceId.split("/");
24
+ return `https://${username}-${spacename.replace(/_/g, "-")}.hf.space/api/v1${openaiKey}`;
25
  } catch (e) {
26
  return "";
27
  }