mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
fix: api dataset (#6551)
* fix: api dataset * Update packages/global/core/chat/type.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -14,4 +14,5 @@ description: 'FastGPT V4.14.9 更新说明'
|
|||||||
## 🐛 修复
|
## 🐛 修复
|
||||||
|
|
||||||
1. 工作流嵌套插件时,未成功保留插件运行详情。同时整理所有 tool 类型前缀。
|
1. 工作流嵌套插件时,未成功保留插件运行详情。同时整理所有 tool 类型前缀。
|
||||||
2. 更新 MCP toolset 后可能无法正常调用。
|
2. 更新 MCP toolset 后可能无法正常调用。
|
||||||
|
3. API 知识库,文件列表搜索框丢失。
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
"document/content/docs/self-host/upgrading/4-14/4148.mdx": "2026-03-09T17:39:53+08:00",
|
"document/content/docs/self-host/upgrading/4-14/4148.mdx": "2026-03-09T17:39:53+08:00",
|
||||||
"document/content/docs/self-host/upgrading/4-14/41481.en.mdx": "2026-03-09T12:02:02+08:00",
|
"document/content/docs/self-host/upgrading/4-14/41481.en.mdx": "2026-03-09T12:02:02+08:00",
|
||||||
"document/content/docs/self-host/upgrading/4-14/41481.mdx": "2026-03-09T17:39:53+08:00",
|
"document/content/docs/self-host/upgrading/4-14/41481.mdx": "2026-03-09T17:39:53+08:00",
|
||||||
"document/content/docs/self-host/upgrading/4-14/4149.mdx": "2026-03-11T23:15:17+08:00",
|
"document/content/docs/self-host/upgrading/4-14/4149.mdx": "2026-03-12T00:15:29+08:00",
|
||||||
"document/content/docs/self-host/upgrading/outdated/40.en.mdx": "2026-03-03T17:39:47+08:00",
|
"document/content/docs/self-host/upgrading/outdated/40.en.mdx": "2026-03-03T17:39:47+08:00",
|
||||||
"document/content/docs/self-host/upgrading/outdated/40.mdx": "2026-03-03T17:39:47+08:00",
|
"document/content/docs/self-host/upgrading/outdated/40.mdx": "2026-03-03T17:39:47+08:00",
|
||||||
"document/content/docs/self-host/upgrading/outdated/41.en.mdx": "2026-03-03T17:39:47+08:00",
|
"document/content/docs/self-host/upgrading/outdated/41.en.mdx": "2026-03-03T17:39:47+08:00",
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ export enum AppToolSourceEnum {
|
|||||||
commercial = 'commercial', // configured in Pro, with associatedPluginId. Specially, commercial-dalle3 is a systemTool
|
commercial = 'commercial', // configured in Pro, with associatedPluginId. Specially, commercial-dalle3 is a systemTool
|
||||||
mcp = 'mcp', // mcp
|
mcp = 'mcp', // mcp
|
||||||
http = 'http', // http
|
http = 'http', // http
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
community = 'community' // this is deprecated, will be replaced by systemTool
|
community = 'community' // this is deprecated, will be replaced by systemTool
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,8 +61,9 @@ export type AppToolTemplateItemType = WorkflowTemplateType & {
|
|||||||
hideTags?: UserTagsEnum[] | null;
|
hideTags?: UserTagsEnum[] | null;
|
||||||
promoteTags?: UserTagsEnum[] | null;
|
promoteTags?: UserTagsEnum[] | null;
|
||||||
|
|
||||||
// @deprecated use tags instead
|
/** @deprecated */
|
||||||
isActive?: boolean;
|
isActive?: boolean; //use tags instead
|
||||||
|
/** @deprecated */
|
||||||
templateType?: string;
|
templateType?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export const AIChatItemValueSchema = z.object({
|
|||||||
plan: AgentPlanSchema.nullish(),
|
plan: AgentPlanSchema.nullish(),
|
||||||
stepTitle: StepTitleItemSchema.nullish(),
|
stepTitle: StepTitleItemSchema.nullish(),
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
tool: ToolModuleResponseItemSchema.nullish()
|
tool: ToolModuleResponseItemSchema.nullish()
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -166,7 +166,9 @@ export type AIChatItemType = {
|
|||||||
errorMsg?: string;
|
errorMsg?: string;
|
||||||
citeCollectionIds?: string[];
|
citeCollectionIds?: string[];
|
||||||
|
|
||||||
// @deprecated 不再存储在 chatItemSchema 里,分别存储到 chatItemResponseSchema
|
/**
|
||||||
|
* @deprecated 不再存储在 chatItemSchema 里,分别存储到 chatItemResponseSchema
|
||||||
|
*/
|
||||||
[DispatchNodeResponseKeyEnum.nodeResponse]?: ChatHistoryItemResType[];
|
[DispatchNodeResponseKeyEnum.nodeResponse]?: ChatHistoryItemResType[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,12 +86,17 @@ export type DatasetSchemaType = {
|
|||||||
// 软删除字段
|
// 软删除字段
|
||||||
deleteTime?: Date | null;
|
deleteTime?: Date | null;
|
||||||
|
|
||||||
// abandon
|
/** @deprecated */
|
||||||
autoSync?: boolean;
|
autoSync?: boolean;
|
||||||
|
/** @deprecated */
|
||||||
externalReadUrl?: string;
|
externalReadUrl?: string;
|
||||||
|
/** @deprecated */
|
||||||
defaultPermission?: number;
|
defaultPermission?: number;
|
||||||
|
/** @deprecated */
|
||||||
apiServer?: APIFileServer;
|
apiServer?: APIFileServer;
|
||||||
|
/** @deprecated */
|
||||||
feishuServer?: FeishuServer;
|
feishuServer?: FeishuServer;
|
||||||
|
/** @deprecated */
|
||||||
yuqueServer?: YuqueServer;
|
yuqueServer?: YuqueServer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -32,8 +32,9 @@ export const SystemPluginToolCollectionSchema = SystemToolBasicConfigSchema.exte
|
|||||||
.optional(),
|
.optional(),
|
||||||
inputListVal: z.record(z.string(), z.any()).optional(),
|
inputListVal: z.record(z.string(), z.any()).optional(),
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
isActive: z.boolean().optional(),
|
isActive: z.boolean().optional(),
|
||||||
|
/** @deprecated */
|
||||||
inputConfig: z
|
inputConfig: z
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ export enum NodeOutputKeyEnum {
|
|||||||
// File
|
// File
|
||||||
fileTitle = 'fileTitle',
|
fileTitle = 'fileTitle',
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
error = 'error'
|
error = 'error'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export const InputComponentPropsTypeSchema = z.object({
|
|||||||
// dynamic input
|
// dynamic input
|
||||||
customInputConfig: CustomFieldConfigTypeSchema.optional(),
|
customInputConfig: CustomFieldConfigTypeSchema.optional(),
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
enums: z.array(z.object({ value: z.string(), label: z.string() })).optional()
|
enums: z.array(z.object({ value: z.string(), label: z.string() })).optional()
|
||||||
});
|
});
|
||||||
export type InputComponentPropsType = z.infer<typeof InputComponentPropsTypeSchema>;
|
export type InputComponentPropsType = z.infer<typeof InputComponentPropsTypeSchema>;
|
||||||
|
|||||||
@@ -132,8 +132,9 @@ export const FlowNodeTemplateTypeSchema = FlowNodeCommonTypeSchema.extend({
|
|||||||
userGuide: z.string().optional(),
|
userGuide: z.string().optional(),
|
||||||
tags: z.array(z.string()).nullish(),
|
tags: z.array(z.string()).nullish(),
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
sourceHandle: HandleTypeSchema.optional(),
|
sourceHandle: HandleTypeSchema.optional(),
|
||||||
|
/** @deprecated */
|
||||||
targetHandle: HandleTypeSchema.optional()
|
targetHandle: HandleTypeSchema.optional()
|
||||||
});
|
});
|
||||||
export type FlowNodeTemplateType = z.infer<typeof FlowNodeTemplateTypeSchema>;
|
export type FlowNodeTemplateType = z.infer<typeof FlowNodeTemplateTypeSchema>;
|
||||||
|
|||||||
@@ -48,9 +48,11 @@ export enum StandardSubLevelEnum {
|
|||||||
advanced = 'advanced',
|
advanced = 'advanced',
|
||||||
custom = 'custom',
|
custom = 'custom',
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
experience = 'experience',
|
experience = 'experience',
|
||||||
|
/** @deprecated */
|
||||||
team = 'team',
|
team = 'team',
|
||||||
|
/** @deprecated */
|
||||||
enterprise = 'enterprise'
|
enterprise = 'enterprise'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export const TeamStandardSubPlanItemSchema = z.object({
|
|||||||
})
|
})
|
||||||
.nullish(),
|
.nullish(),
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
pointPrice: z.number().optional()
|
pointPrice: z.number().optional()
|
||||||
});
|
});
|
||||||
export type TeamStandardSubPlanItemType = z.infer<typeof TeamStandardSubPlanItemSchema>;
|
export type TeamStandardSubPlanItemType = z.infer<typeof TeamStandardSubPlanItemSchema>;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export type UsageSchemaType = {
|
|||||||
appId?: string;
|
appId?: string;
|
||||||
datasetId?: string;
|
datasetId?: string;
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
list?: UsageItemType[];
|
list?: UsageItemType[];
|
||||||
};
|
};
|
||||||
export type UsageItemSchemaType = {
|
export type UsageItemSchemaType = {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export enum QueueNames {
|
|||||||
datasetDelete = 'datasetDelete',
|
datasetDelete = 'datasetDelete',
|
||||||
appDelete = 'appDelete',
|
appDelete = 'appDelete',
|
||||||
teamDelete = 'teamDelete',
|
teamDelete = 'teamDelete',
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
websiteSync = 'websiteSync'
|
websiteSync = 'websiteSync'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ const ChatItemSchema = new Schema({
|
|||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
[DispatchNodeResponseKeyEnum.nodeResponse]: Array
|
[DispatchNodeResponseKeyEnum.nodeResponse]: Array
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ const ChatSchema = new Schema({
|
|||||||
select: false
|
select: false
|
||||||
},
|
},
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
userId: Schema.Types.ObjectId
|
userId: Schema.Types.ObjectId
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,9 @@ const SystemToolSchema = new Schema({
|
|||||||
enum: UserTagsEnum.enum
|
enum: UserTagsEnum.enum
|
||||||
},
|
},
|
||||||
|
|
||||||
// @deprecated
|
/** @deprecated */
|
||||||
inputConfig: Array,
|
inputConfig: Array,
|
||||||
|
/** @deprecated */
|
||||||
isActive: Boolean
|
isActive: Boolean
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,11 @@ type RunCodeType = ModuleDispatchProps<{
|
|||||||
}>;
|
}>;
|
||||||
type RunCodeResponse = DispatchNodeResultType<
|
type RunCodeResponse = DispatchNodeResultType<
|
||||||
{
|
{
|
||||||
[NodeOutputKeyEnum.error]?: any; // @deprecated
|
|
||||||
[NodeOutputKeyEnum.rawResponse]?: Record<string, any>;
|
[NodeOutputKeyEnum.rawResponse]?: Record<string, any>;
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
[NodeOutputKeyEnum.error]?: any;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
[NodeOutputKeyEnum.error]: string;
|
[NodeOutputKeyEnum.error]: string;
|
||||||
|
|||||||
@@ -66,7 +66,12 @@ const CustomAPIFileInput = () => {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
refreshDeps: [datasetDetail._id, datasetDetail.apiServer, parent, searchKey],
|
refreshDeps: [
|
||||||
|
datasetDetail._id,
|
||||||
|
datasetDetail.apiDatasetServer?.apiServer,
|
||||||
|
parent,
|
||||||
|
searchKey
|
||||||
|
],
|
||||||
throttleWait: 500,
|
throttleWait: 500,
|
||||||
manual: false
|
manual: false
|
||||||
}
|
}
|
||||||
@@ -169,7 +174,7 @@ const CustomAPIFileInput = () => {
|
|||||||
setPaths(paths.slice(0, index + 1));
|
setPaths(paths.slice(0, index + 1));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{datasetDetail.apiServer && (
|
{datasetDetail?.apiDatasetServer?.apiServer && (
|
||||||
<Box w={'240px'}>
|
<Box w={'240px'}>
|
||||||
<SearchInput
|
<SearchInput
|
||||||
value={searchKey}
|
value={searchKey}
|
||||||
|
|||||||
Reference in New Issue
Block a user