mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: increase rate limits in jinaAiMiddleware
This commit is contained in:
@@ -99,11 +99,11 @@ export const jinaAiMiddleware = (req: Request, res: Response, next: NextFunction
|
|||||||
rateLimitPolicy = authDto.getRateLimits(appName) || [
|
rateLimitPolicy = authDto.getRateLimits(appName) || [
|
||||||
parseInt(user.metadata?.speed_level) >= 2 ?
|
parseInt(user.metadata?.speed_level) >= 2 ?
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
occurrence: 100,
|
occurrence: 500,
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
}) :
|
}) :
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
occurrence: 10,
|
occurrence: 50,
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user