Skip to content

Commit f1df2f9

Browse files
committed
fix: enable rate limit envs
1 parent d1f186a commit f1df2f9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

backend/src/utils/rateLimitConfig.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { consola } from "consola";
2+
import { DEFAULT_RATE_LIMIT, DEFAULT_REFILL_RATE } from "./config";
23

34
const logger = consola.withTag("rateLimitConfig");
45

@@ -8,8 +9,8 @@ export interface RateLimitConfig {
89
}
910

1011
export const DEFAULT_RATE_LIMIT_CONFIG: RateLimitConfig = {
11-
limit: 10,
12-
refill: 1,
12+
limit: DEFAULT_RATE_LIMIT,
13+
refill: DEFAULT_REFILL_RATE,
1314
};
1415

1516
const MODEL_CONFIGS: Record<string, RateLimitConfig> = {};

0 commit comments

Comments
 (0)