mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 13:38:00 +00:00
V4.6.6-2 (#673)
This commit is contained in:
@@ -11,7 +11,12 @@ import type {
|
||||
DatasetUpdateBody,
|
||||
PostWebsiteSyncParams
|
||||
} from '@fastgpt/global/core/dataset/api.d';
|
||||
import type { SearchTestProps, SearchTestResponse } from '@/global/core/dataset/api.d';
|
||||
import type {
|
||||
GetTrainingQueueProps,
|
||||
GetTrainingQueueResponse,
|
||||
SearchTestProps,
|
||||
SearchTestResponse
|
||||
} from '@/global/core/dataset/api.d';
|
||||
import type {
|
||||
PushDatasetDataProps,
|
||||
UpdateDatasetDataProps,
|
||||
@@ -107,7 +112,8 @@ export const delOneDatasetDataById = (dataId: string) =>
|
||||
|
||||
/* ================ training ==================== */
|
||||
/* get length of system training queue */
|
||||
export const getTrainingQueueLen = () => GET<number>(`/core/dataset/training/getQueueLen`);
|
||||
export const getTrainingQueueLen = (data: GetTrainingQueueProps) =>
|
||||
GET<GetTrainingQueueResponse>(`/core/dataset/training/getQueueLen`, data);
|
||||
|
||||
/* ================== file ======================== */
|
||||
export const getFileViewUrl = (fileId: string) =>
|
||||
|
@@ -2,6 +2,7 @@ import { create } from 'zustand';
|
||||
import { devtools, persist } from 'zustand/middleware';
|
||||
import { immer } from 'zustand/middleware/immer';
|
||||
import type { SearchDataResponseItemType } from '@fastgpt/global/core/dataset/type';
|
||||
import { DatasetSearchModeEnum } from '@fastgpt/global/core/dataset/constant';
|
||||
|
||||
export type SearchTestStoreItemType = {
|
||||
id: string;
|
||||
@@ -10,6 +11,7 @@ export type SearchTestStoreItemType = {
|
||||
time: Date;
|
||||
duration: string;
|
||||
results: SearchDataResponseItemType[];
|
||||
searchMode: `${DatasetSearchModeEnum}`;
|
||||
};
|
||||
|
||||
type State = {
|
||||
|
Reference in New Issue
Block a user