xovakat commited on
Commit
5c14de1
1 Parent(s): 9aff024

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +3 -0
server.js CHANGED
@@ -4,6 +4,9 @@ const app = express();
4
  const targetUrl = 'https://generativelanguage.googleapis.com';
5
  const port = 7860;
6
 
 
 
 
7
  app.use('/', proxy(targetUrl, {
8
  https: true,
9
  proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
 
4
  const targetUrl = 'https://generativelanguage.googleapis.com';
5
  const port = 7860;
6
 
7
+ app.use(express.json({ limit: '10mb' }));
8
+ app.use(express.urlencoded({ limit: '10mb', extended: true }));
9
+
10
  app.use('/', proxy(targetUrl, {
11
  https: true,
12
  proxyReqOptDecorator: (proxyReqOpts, srcReq) => {