Optimize the file storage structure of the knowledge base (#386)
This commit is contained in:
8
packages/core/dataset/utils.ts
Normal file
8
packages/core/dataset/utils.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { datasetSpecialIds } from './constant';
|
||||
import { strIsLink } from '@fastgpt/common/tools/str';
|
||||
|
||||
export function isSpecialFileId(id: string) {
|
||||
if (datasetSpecialIds.includes(id)) return true;
|
||||
if (strIsLink(id)) return true;
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user