mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
feat: enhance SystemPluginTemplateItemType to include user instructions (#5455)
This commit is contained in:
parent
d72929dcf8
commit
8f3424cea1
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue