Spaces:
Building
Building
Vladimir Alabov
commited on
Commit
•
2ac0c37
1
Parent(s):
1ec06bf
updated 3
Browse files
server.js
CHANGED
@@ -3,7 +3,7 @@ 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 =
|
7 |
const baseUrl = getExternalUrl(process.env.SPACE_ID);
|
8 |
|
9 |
app.use('/api', proxy(targetUrl, {
|
|
|
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, {
|