mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
9 lines
253 B
TypeScript
9 lines
253 B
TypeScript
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;
|
|
}
|