mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 07:00:47 +00:00
feat: enhance SystemPluginTemplateItemType to include user instructions (#5455)
This commit is contained in:
@@ -558,6 +558,7 @@ export const getSystemTools = async (): Promise<SystemPluginTemplateItemType[]>
|
||||
intro: item.description,
|
||||
author: item.author,
|
||||
courseUrl: item.courseUrl,
|
||||
instructions: dbPluginConfig?.customConfig?.userGuide,
|
||||
weight: item.weight,
|
||||
workflow: {
|
||||
nodes: [],
|
||||
|
@@ -35,7 +35,8 @@ async function handler(
|
||||
templateType: plugin.templateType ?? FlowNodeTemplateTypeEnum.other,
|
||||
flowNodeType: plugin.isFolder ? FlowNodeTypeEnum.toolSet : FlowNodeTypeEnum.tool,
|
||||
name: parseI18nString(plugin.name, lang),
|
||||
intro: parseI18nString(plugin.intro ?? '', lang)
|
||||
intro: parseI18nString(plugin.intro ?? '', lang),
|
||||
instructions: parseI18nString(plugin.userGuide ?? '', lang)
|
||||
}))
|
||||
.filter((item) => {
|
||||
if (searchKey) {
|
||||
|
Reference in New Issue
Block a user