Skip to content

Commit

Permalink
Free generations costly
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Aug 11, 2024
1 parent 41fa082 commit 764545e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/prompt/_shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function handleRateLimit(req: Request) {
redis: kv,
limiter: isPro
? Ratelimit.slidingWindow(3, "1m")
: Ratelimit.fixedWindow(3, "30d"),
: Ratelimit.fixedWindow(1, "30d"),
});

const rateLimitKey = isPro ? `pro_${customerId}` : `unauth_${ip}`;
Expand Down

0 comments on commit 764545e

Please sign in to comment.