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 类型前缀。
|
||||
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/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/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.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
|
||||
mcp = 'mcp', // mcp
|
||||
http = 'http', // http
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
community = 'community' // this is deprecated, will be replaced by systemTool
|
||||
}
|
||||
|
||||
@@ -61,8 +61,9 @@ export type AppToolTemplateItemType = WorkflowTemplateType & {
|
||||
hideTags?: UserTagsEnum[] | null;
|
||||
promoteTags?: UserTagsEnum[] | null;
|
||||
|
||||
// @deprecated use tags instead
|
||||
isActive?: boolean;
|
||||
/** @deprecated */
|
||||
isActive?: boolean; //use tags instead
|
||||
/** @deprecated */
|
||||
templateType?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ export const AIChatItemValueSchema = z.object({
|
||||
plan: AgentPlanSchema.nullish(),
|
||||
stepTitle: StepTitleItemSchema.nullish(),
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
tool: ToolModuleResponseItemSchema.nullish()
|
||||
});
|
||||
|
||||
@@ -166,7 +166,9 @@ export type AIChatItemType = {
|
||||
errorMsg?: string;
|
||||
citeCollectionIds?: string[];
|
||||
|
||||
// @deprecated 不再存储在 chatItemSchema 里,分别存储到 chatItemResponseSchema
|
||||
/**
|
||||
* @deprecated 不再存储在 chatItemSchema 里,分别存储到 chatItemResponseSchema
|
||||
*/
|
||||
[DispatchNodeResponseKeyEnum.nodeResponse]?: ChatHistoryItemResType[];
|
||||
};
|
||||
|
||||
|
||||
@@ -86,12 +86,17 @@ export type DatasetSchemaType = {
|
||||
// 软删除字段
|
||||
deleteTime?: Date | null;
|
||||
|
||||
// abandon
|
||||
/** @deprecated */
|
||||
autoSync?: boolean;
|
||||
/** @deprecated */
|
||||
externalReadUrl?: string;
|
||||
/** @deprecated */
|
||||
defaultPermission?: number;
|
||||
/** @deprecated */
|
||||
apiServer?: APIFileServer;
|
||||
/** @deprecated */
|
||||
feishuServer?: FeishuServer;
|
||||
/** @deprecated */
|
||||
yuqueServer?: YuqueServer;
|
||||
};
|
||||
|
||||
|
||||
@@ -32,8 +32,9 @@ export const SystemPluginToolCollectionSchema = SystemToolBasicConfigSchema.exte
|
||||
.optional(),
|
||||
inputListVal: z.record(z.string(), z.any()).optional(),
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
isActive: z.boolean().optional(),
|
||||
/** @deprecated */
|
||||
inputConfig: z
|
||||
.array(
|
||||
z.object({
|
||||
|
||||
@@ -316,7 +316,7 @@ export enum NodeOutputKeyEnum {
|
||||
// File
|
||||
fileTitle = 'fileTitle',
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
error = 'error'
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ export const InputComponentPropsTypeSchema = z.object({
|
||||
// dynamic input
|
||||
customInputConfig: CustomFieldConfigTypeSchema.optional(),
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
enums: z.array(z.object({ value: z.string(), label: z.string() })).optional()
|
||||
});
|
||||
export type InputComponentPropsType = z.infer<typeof InputComponentPropsTypeSchema>;
|
||||
|
||||
@@ -132,8 +132,9 @@ export const FlowNodeTemplateTypeSchema = FlowNodeCommonTypeSchema.extend({
|
||||
userGuide: z.string().optional(),
|
||||
tags: z.array(z.string()).nullish(),
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
sourceHandle: HandleTypeSchema.optional(),
|
||||
/** @deprecated */
|
||||
targetHandle: HandleTypeSchema.optional()
|
||||
});
|
||||
export type FlowNodeTemplateType = z.infer<typeof FlowNodeTemplateTypeSchema>;
|
||||
|
||||
@@ -48,9 +48,11 @@ export enum StandardSubLevelEnum {
|
||||
advanced = 'advanced',
|
||||
custom = 'custom',
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
experience = 'experience',
|
||||
/** @deprecated */
|
||||
team = 'team',
|
||||
/** @deprecated */
|
||||
enterprise = 'enterprise'
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export const TeamStandardSubPlanItemSchema = z.object({
|
||||
})
|
||||
.nullish(),
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
pointPrice: z.number().optional()
|
||||
});
|
||||
export type TeamStandardSubPlanItemType = z.infer<typeof TeamStandardSubPlanItemSchema>;
|
||||
|
||||
@@ -14,7 +14,7 @@ export type UsageSchemaType = {
|
||||
appId?: string;
|
||||
datasetId?: string;
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
list?: UsageItemType[];
|
||||
};
|
||||
export type UsageItemSchemaType = {
|
||||
|
||||
@@ -32,7 +32,7 @@ export enum QueueNames {
|
||||
datasetDelete = 'datasetDelete',
|
||||
appDelete = 'appDelete',
|
||||
teamDelete = 'teamDelete',
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
websiteSync = 'websiteSync'
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ const ChatItemSchema = new Schema({
|
||||
default: null
|
||||
},
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
[DispatchNodeResponseKeyEnum.nodeResponse]: Array
|
||||
});
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ const ChatSchema = new Schema({
|
||||
select: false
|
||||
},
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
userId: Schema.Types.ObjectId
|
||||
});
|
||||
|
||||
|
||||
@@ -49,8 +49,9 @@ const SystemToolSchema = new Schema({
|
||||
enum: UserTagsEnum.enum
|
||||
},
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
inputConfig: Array,
|
||||
/** @deprecated */
|
||||
isActive: Boolean
|
||||
});
|
||||
|
||||
|
||||
@@ -12,9 +12,11 @@ type RunCodeType = ModuleDispatchProps<{
|
||||
}>;
|
||||
type RunCodeResponse = DispatchNodeResultType<
|
||||
{
|
||||
[NodeOutputKeyEnum.error]?: any; // @deprecated
|
||||
[NodeOutputKeyEnum.rawResponse]?: Record<string, any>;
|
||||
[key: string]: any;
|
||||
|
||||
/** @deprecated */
|
||||
[NodeOutputKeyEnum.error]?: any;
|
||||
},
|
||||
{
|
||||
[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,
|
||||
manual: false
|
||||
}
|
||||
@@ -169,7 +174,7 @@ const CustomAPIFileInput = () => {
|
||||
setPaths(paths.slice(0, index + 1));
|
||||
}}
|
||||
/>
|
||||
{datasetDetail.apiServer && (
|
||||
{datasetDetail?.apiDatasetServer?.apiServer && (
|
||||
<Box w={'240px'}>
|
||||
<SearchInput
|
||||
value={searchKey}
|
||||
|
||||
Reference in New Issue
Block a user