4.6.2-alpha (#517)

This commit is contained in:
Archer
2023-11-25 21:58:00 +08:00
committed by GitHub
parent 9cb4280a16
commit 3acbf1ab17
39 changed files with 617 additions and 183 deletions

View File

@@ -3,12 +3,12 @@ import type { ParentTreePathItemType } from '@fastgpt/global/common/parentFolder
import type { DatasetItemType } from '@fastgpt/global/core/dataset/type.d';
import type {
DatasetUpdateParams,
SearchTestProps,
GetDatasetCollectionsProps,
GetDatasetDataListProps,
CreateDatasetCollectionParams,
UpdateDatasetCollectionParams
} from '@/global/core/api/datasetReq.d';
import type { SearchTestProps, SearchTestResponse } from '@/global/core/dataset/api.d';
import type {
PushDatasetDataProps,
UpdateDatasetDataProps,
@@ -21,8 +21,6 @@ import type {
SearchDataResponseItemType
} from '@fastgpt/global/core/dataset/type';
import { DatasetTypeEnum } from '@fastgpt/global/core/dataset/constant';
import { getToken } from '@/web/support/user/auth';
import download from 'downloadjs';
import type { DatasetDataItemType } from '@fastgpt/global/core/dataset/type';
import type { DatasetCollectionsListItemType } from '@/global/core/dataset/type.d';
import { PagingData } from '@/types';
@@ -53,7 +51,7 @@ export const getCheckExportLimit = (datasetId: string) =>
/* =========== search test ============ */
export const postSearchText = (data: SearchTestProps) =>
POST<SearchDataResponseItemType[]>(`/core/dataset/searchTest`, data);
POST<SearchTestResponse>(`/core/dataset/searchTest`, data);
/* ============================= collections ==================================== */
export const getDatasetCollections = (data: GetDatasetCollectionsProps) =>

View File

@@ -8,6 +8,7 @@ export type SearchTestStoreItemType = {
datasetId: string;
text: string;
time: Date;
duration: string;
results: SearchDataResponseItemType[];
};