mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-20 10:45:52 +00:00
perf: export data
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取模型正在拆分数据的数量
|
* 获取模型正在拆分数据的数量
|
||||||
|
@@ -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;
|
||||||
|
@@ -69,3 +69,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
api: {
|
||||||
|
bodyParser: {
|
||||||
|
sizeLimit: '100mb'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user