4.8.12 test fix (#2988)

* perf: qps limit

* perf: http response data

* perf: json path check

* fix: ts

* loop support reference parent variable
This commit is contained in:
Archer
2024-10-25 16:34:26 +08:00
committed by shilin66
parent eb28734a63
commit 8df886452e
14 changed files with 144 additions and 122 deletions

View File

@@ -14,6 +14,7 @@ import {
import { NextAPI } from '@/service/middleware/entry';
import { ReadPermissionVal } from '@fastgpt/global/support/permission/constant';
import { CommonErrEnum } from '@fastgpt/global/common/error/code/common';
import { useReqFrequencyLimit } from '@fastgpt/service/common/middle/reqFrequencyLimit';
async function handler(req: NextApiRequest) {
const {
@@ -98,4 +99,4 @@ async function handler(req: NextApiRequest) {
};
}
export default NextAPI(handler);
export default NextAPI(useReqFrequencyLimit(1, 2), handler);