Update server.js.

#1
by Edmon02 - opened
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
  }));