mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 04:55:06 +09:00
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:
1 parent
19f1d5d734
commit
1dfe005808
1 file changed
+1
-1
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user