mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
saas: new rate limit policy
This commit is contained in:
@@ -99,7 +99,7 @@ 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: 30,
|
occurrence: 100,
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
}) :
|
}) :
|
||||||
RateLimitDesc.from({
|
RateLimitDesc.from({
|
||||||
|
|||||||
Reference in New Issue
Block a user