We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f99e2 commit 4ac9e6aCopy full SHA for 4ac9e6a
apps/postgres-new/app/api/chat/route.ts
@@ -11,13 +11,13 @@ export const maxDuration = 30
11
12
const inputTokenRateLimit = new Ratelimit({
13
redis: kv,
14
- limiter: Ratelimit.fixedWindow(1000000, '30m'),
+ limiter: Ratelimit.fixedWindow(100000, '30m'),
15
prefix: 'ratelimit:tokens:input',
16
})
17
18
const outputTokenRateLimit = new Ratelimit({
19
20
- limiter: Ratelimit.fixedWindow(10000, '30m'),
+ limiter: Ratelimit.fixedWindow(1000, '30m'),
21
prefix: 'ratelimit:tokens:output',
22
23
0 commit comments