Vladimir Alabov
commited on
Commit
•
56643f6
1
Parent(s):
2ac0c37
updated 4
Browse files
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 =
|
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) => {
|