Edmon02 commited on
Commit
65f8c8c
1 Parent(s): 6ce077a

Update server.js.

Browse files
Files changed (1) hide show
  1. 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
  }));