perf: export data

This commit is contained in:
archer
2023-05-28 21:13:17 +08:00
parent d351a56e03
commit 403e1f2d92
4 changed files with 18 additions and 3 deletions

View File

@@ -48,8 +48,8 @@ services:
- aliSignName=xxxxx - aliSignName=xxxxx
- aliTemplateCode=SMS_xxxx - aliTemplateCode=SMS_xxxx
# google V3 安全校验(可选) # google V3 安全校验(可选)
- CLIENT_GOOGLE_VER_TOKEN=6LcDlDUmAAAAAAbGrwhIZtt3G_Ulf5V-lPamB5qd - CLIENT_GOOGLE_VER_TOKEN=xxx
- SERVICE_GOOGLE_VER_TOKEN=6LcDlDUmAAAAANIOO1jLdSLDAiyQCnX9dVTr81nt - SERVICE_GOOGLE_VER_TOKEN=xx
# QA和向量生成最大进程数 # QA和向量生成最大进程数
- QA_MAX_PROCESS=10 - QA_MAX_PROCESS=10
- VECTOR_MAX_PROCESS=10 - VECTOR_MAX_PROCESS=10

View File

@@ -32,7 +32,13 @@ export const getKbDataList = (data: GetKbDataListProps) =>
* 获取导出数据(不分页) * 获取导出数据(不分页)
*/ */
export const getExportDataList = (kbId: string) => export const getExportDataList = (kbId: string) =>
GET<[string, string][]>(`/plugins/kb/data/exportModelData?kbId=${kbId}`); GET<[string, string][]>(
`/plugins/kb/data/exportModelData`,
{ kbId },
{
timeout: 600000
}
);
/** /**
* 获取模型正在拆分数据的数量 * 获取模型正在拆分数据的数量

View File

@@ -5,6 +5,7 @@ import { TOKEN_ERROR_CODE } from '@/service/errorCode';
interface ConfigType { interface ConfigType {
headers?: { [key: string]: string }; headers?: { [key: string]: string };
hold?: boolean; hold?: boolean;
timeout?: number;
} }
interface ResponseDataType { interface ResponseDataType {
code: number; code: number;

View File

@@ -69,3 +69,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
}); });
} }
} }
export const config = {
api: {
bodyParser: {
sizeLimit: '100mb'
}
}
};