chore: Increase AI rate limit (#2447)

## Description

Increasing AI rate limit per user per 5 minute


## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
This commit is contained in:
Oleg Isonen authored and GitHub committed 2023-10-11 09:19:49 +02:00
1 parent 19f1d5d734
commit 1dfe005808
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ const getRateLimitMemoized = memoize(
// No ephemeralCache for the AI endpoint
const ai = new Ratelimit({
redis: kv,
limiter: Ratelimit.slidingWindow(20, "5 m"),
limiter: Ratelimit.slidingWindow(100, "5 m"),
prefix: "ai",
});