fix
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 | ... | ... |
-
Please register or sign in to post a comment