f6b58338 by RSA

fix

1 parent 762b3086
Showing 1 changed file with 2 additions and 2 deletions
...@@ -14,8 +14,8 @@ const configuration = new Configuration({ ...@@ -14,8 +14,8 @@ const configuration = new Configuration({
14 const openai = new OpenAIApi(configuration); 14 const openai = new OpenAIApi(configuration);
15 15
16 const rateLimiter = rateLimit({ 16 const rateLimiter = rateLimit({
17 windowMs: 1000 * 60 * 2, // 1 minute (refreshTime) 17 windowMs: 1000 * 60 * 1, // 1 minute (refreshTime)
18 max: 10, // limit each IP to x requests per windowMs (refreshTime) 18 max: 3000, // limit each IP to x requests per windowMs (refreshTime)
19 message: 'Sorry, too many requests. Please try again in a bit!', 19 message: 'Sorry, too many requests. Please try again in a bit!',
20 }); 20 });
21 21
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!