mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
perf: dataset import params code (#4875)
* perf: dataset import params code * perf: api dataset code * model
This commit is contained in:
@@ -163,7 +163,7 @@ export const readApiServerFileContent = async ({
|
||||
title?: string;
|
||||
rawText: string;
|
||||
}> => {
|
||||
const data = (
|
||||
return (
|
||||
await getApiDatasetRequest({
|
||||
apiServer,
|
||||
yuqueServer,
|
||||
@@ -175,10 +175,6 @@ export const readApiServerFileContent = async ({
|
||||
apiFileId,
|
||||
customPdfParse
|
||||
});
|
||||
if (data) {
|
||||
return data;
|
||||
}
|
||||
return Promise.reject(Error);
|
||||
};
|
||||
|
||||
export const rawText2Chunks = ({
|
||||
|
Reference in New Issue
Block a user