Vladimir Alabov commited on
Commit
56643f6
1 Parent(s): 2ac0c37
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -3,8 +3,8 @@ const proxy = require('express-http-proxy');
3
  const app = express();
4
  const targetUrl = 'https://api.openai.com';
5
  // const openaiKey = process.env.OPENAI_KEY
6
- const port = 3000;
7
- const baseUrl = getExternalUrl(process.env.SPACE_ID);
8
 
9
  app.use('/api', proxy(targetUrl, {
10
  proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
 
3
  const app = express();
4
  const targetUrl = 'https://api.openai.com';
5
  // const openaiKey = process.env.OPENAI_KEY
6
+ const port = 7860;
7
+ const baseUrl = 'kek'// getExternalUrl(process.env.SPACE_ID);
8
 
9
  app.use('/api', proxy(targetUrl, {
10
  proxyReqOptDecorator: (proxyReqOpts, srcReq) => {