Spaces:
Runtime error
Runtime error
Update server.js.
Browse files- server.js. +1 -0
server.js.
CHANGED
@@ -10,6 +10,7 @@ app.use('/api', proxy(targetUrl, {
|
|
10 |
proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
|
11 |
// Modify the request headers if necessary
|
12 |
proxyReqOpts.headers['Authorization'] = 'Bearer '+openaiKey;
|
|
|
13 |
return proxyReqOpts;
|
14 |
},
|
15 |
}));
|
|
|
10 |
proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
|
11 |
// Modify the request headers if necessary
|
12 |
proxyReqOpts.headers['Authorization'] = 'Bearer '+openaiKey;
|
13 |
+
console.log(openaiKey)
|
14 |
return proxyReqOpts;
|
15 |
},
|
16 |
}));
|