mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
system qpm limit
This commit is contained in:
parent
d0bac766b0
commit
bbdfb0c745
|
|
@ -294,7 +294,10 @@ export const teamQPM = {
|
|||
teamPlanStatus[SubTypeEnum.standard]?.requestsPerMinute ??
|
||||
teamPlanStatus.standardConstants?.requestsPerMinute;
|
||||
|
||||
if (!limit) return null;
|
||||
if (!limit) {
|
||||
if (process.env.CHAT_MAX_QPM) return Number(process.env.CHAT_MAX_QPM);
|
||||
return null;
|
||||
}
|
||||
|
||||
// 3. Set cache
|
||||
await teamQPM.setCachedTeamQPMLimit(teamId, limit);
|
||||
|
|
|
|||
Loading…
Reference in New Issue