Skip to content

Commit 4b4f856

Browse files
c121914yuCopilot
andauthored
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>
1 parent 57489c2 commit 4b4f856

File tree

19 files changed

+43
-22
lines changed

19 files changed

+43
-22
lines changed

document/content/docs/self-host/upgrading/4-14/4149.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ description: 'FastGPT V4.14.9 更新说明'
1414
## 🐛 修复
1515

1616
1. 工作流嵌套插件时,未成功保留插件运行详情。同时整理所有 tool 类型前缀。
17-
2. 更新 MCP toolset 后可能无法正常调用。
17+
2. 更新 MCP toolset 后可能无法正常调用。
18+
3. API 知识库,文件列表搜索框丢失。

document/data/doc-last-modified.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"document/content/docs/self-host/upgrading/4-14/4148.mdx": "2026-03-09T17:39:53+08:00",
236236
"document/content/docs/self-host/upgrading/4-14/41481.en.mdx": "2026-03-09T12:02:02+08:00",
237237
"document/content/docs/self-host/upgrading/4-14/41481.mdx": "2026-03-09T17:39:53+08:00",
238-
"document/content/docs/self-host/upgrading/4-14/4149.mdx": "2026-03-11T23:15:17+08:00",
238+
"document/content/docs/self-host/upgrading/4-14/4149.mdx": "2026-03-12T00:15:29+08:00",
239239
"document/content/docs/self-host/upgrading/outdated/40.en.mdx": "2026-03-03T17:39:47+08:00",
240240
"document/content/docs/self-host/upgrading/outdated/40.mdx": "2026-03-03T17:39:47+08:00",
241241
"document/content/docs/self-host/upgrading/outdated/41.en.mdx": "2026-03-03T17:39:47+08:00",

packages/global/core/app/tool/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export enum AppToolSourceEnum {
44
commercial = 'commercial', // configured in Pro, with associatedPluginId. Specially, commercial-dalle3 is a systemTool
55
mcp = 'mcp', // mcp
66
http = 'http', // http
7-
// @deprecated
7+
/** @deprecated */
88
community = 'community' // this is deprecated, will be replaced by systemTool
99
}

packages/global/core/app/tool/type.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ export type AppToolTemplateItemType = WorkflowTemplateType & {
6161
hideTags?: UserTagsEnum[] | null;
6262
promoteTags?: UserTagsEnum[] | null;
6363

64-
// @deprecated use tags instead
65-
isActive?: boolean;
64+
/** @deprecated */
65+
isActive?: boolean; //use tags instead
66+
/** @deprecated */
6667
templateType?: string;
6768
};
6869

packages/global/core/chat/type.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const AIChatItemValueSchema = z.object({
145145
plan: AgentPlanSchema.nullish(),
146146
stepTitle: StepTitleItemSchema.nullish(),
147147

148-
// @deprecated
148+
/** @deprecated */
149149
tool: ToolModuleResponseItemSchema.nullish()
150150
});
151151

@@ -166,7 +166,9 @@ export type AIChatItemType = {
166166
errorMsg?: string;
167167
citeCollectionIds?: string[];
168168

169-
// @deprecated 不再存储在 chatItemSchema 里,分别存储到 chatItemResponseSchema
169+
/**
170+
* @deprecated 不再存储在 chatItemSchema 里,分别存储到 chatItemResponseSchema
171+
*/
170172
[DispatchNodeResponseKeyEnum.nodeResponse]?: ChatHistoryItemResType[];
171173
};
172174

packages/global/core/dataset/type.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,17 @@ export type DatasetSchemaType = {
8686
// 软删除字段
8787
deleteTime?: Date | null;
8888

89-
// abandon
89+
/** @deprecated */
9090
autoSync?: boolean;
91+
/** @deprecated */
9192
externalReadUrl?: string;
93+
/** @deprecated */
9294
defaultPermission?: number;
95+
/** @deprecated */
9396
apiServer?: APIFileServer;
97+
/** @deprecated */
9498
feishuServer?: FeishuServer;
99+
/** @deprecated */
95100
yuqueServer?: YuqueServer;
96101
};
97102

packages/global/core/plugin/tool/type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ export const SystemPluginToolCollectionSchema = SystemToolBasicConfigSchema.exte
3232
.optional(),
3333
inputListVal: z.record(z.string(), z.any()).optional(),
3434

35-
// @deprecated
35+
/** @deprecated */
3636
isActive: z.boolean().optional(),
37+
/** @deprecated */
3738
inputConfig: z
3839
.array(
3940
z.object({

packages/global/core/workflow/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export enum NodeOutputKeyEnum {
316316
// File
317317
fileTitle = 'fileTitle',
318318

319-
// @deprecated
319+
/** @deprecated */
320320
error = 'error'
321321
}
322322

packages/global/core/workflow/type/io.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const InputComponentPropsTypeSchema = z.object({
6868
// dynamic input
6969
customInputConfig: CustomFieldConfigTypeSchema.optional(),
7070

71-
// @deprecated
71+
/** @deprecated */
7272
enums: z.array(z.object({ value: z.string(), label: z.string() })).optional()
7373
});
7474
export type InputComponentPropsType = z.infer<typeof InputComponentPropsTypeSchema>;

packages/global/core/workflow/type/node.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ export const FlowNodeTemplateTypeSchema = FlowNodeCommonTypeSchema.extend({
132132
userGuide: z.string().optional(),
133133
tags: z.array(z.string()).nullish(),
134134

135-
// @deprecated
135+
/** @deprecated */
136136
sourceHandle: HandleTypeSchema.optional(),
137+
/** @deprecated */
137138
targetHandle: HandleTypeSchema.optional()
138139
});
139140
export type FlowNodeTemplateType = z.infer<typeof FlowNodeTemplateTypeSchema>;

0 commit comments

Comments
 (0)