mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: increase rate limits in jinaAiMiddleware
This commit is contained in:
parent
9ea355a9a5
commit
a03e20f0bf
@ -99,11 +99,11 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction
|
||||
rateLimitPolicy = authDto.getRateLimits(appName) || [
|
||||
parseInt(user.metadata?.speed_level) >= 2 ?
|
||||
RateLimitDesc.from({
|
||||
occurrence: 100,
|
||||
occurrence: 500,
|
||||
periodSeconds: 60
|
||||
}) :
|
||||
RateLimitDesc.from({
|
||||
occurrence: 10,
|
||||
occurrence: 50,
|
||||
periodSeconds: 60
|
||||
})
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user