change app template default author (#2893)

This commit is contained in:
heheer
2024-10-12 09:59:16 +08:00
committed by GitHub
parent 06e1c5d68d
commit 0dcda9822e
13 changed files with 15 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
{ {
"name": "问题分类 + 知识库", "name": "问题分类 + 知识库",
"intro": "先对用户的问题进行分类,再根据不同类型问题,执行不同的操作", "intro": "先对用户的问题进行分类,再根据不同类型问题,执行不同的操作",
"author": "FastGPT", "author": "",
"avatar": "core/workflow/template/questionClassify", "avatar": "core/workflow/template/questionClassify",
"tags": ["office-services"], "tags": ["office-services"],
"type": "advanced", "type": "advanced",

View File

@@ -1,7 +1,7 @@
{ {
"name": "多轮翻译机器人", "name": "多轮翻译机器人",
"intro": "通过 4 轮翻译,提高翻译英文的质量", "intro": "通过 4 轮翻译,提高翻译英文的质量",
"author": "FastGPT", "author": "",
"avatar": "/appMarketTemplates/TranslateRobot/avatar.svg", "avatar": "/appMarketTemplates/TranslateRobot/avatar.svg",
"tags": ["office-services"], "tags": ["office-services"],
"type": "advanced", "type": "advanced",

View File

@@ -1,7 +1,7 @@
{ {
"name": "对话引导 + 变量", "name": "对话引导 + 变量",
"intro": "可以在对话开始发送一段提示,或者让用户填写一些内容,作为本次对话的变量", "intro": "可以在对话开始发送一段提示,或者让用户填写一些内容,作为本次对话的变量",
"author": "FastGPT", "author": "",
"avatar": "core/workflow/template/systemConfig", "avatar": "core/workflow/template/systemConfig",
"tags": ["office-services"], "tags": ["office-services"],
"type": "simple", "type": "simple",

View File

@@ -1,7 +1,7 @@
{ {
"name": "Flux 绘图", "name": "Flux 绘图",
"intro": "通过请求 Flux 接口绘图,需要有 api key", "intro": "通过请求 Flux 接口绘图,需要有 api key",
"author": "FastGPT", "author": "",
"avatar": "/appMarketTemplates/flux/avatar.svg", "avatar": "/appMarketTemplates/flux/avatar.svg",
"type": "plugin", "type": "plugin",
"tags": ["image-generation"], "tags": ["image-generation"],

View File

@@ -1,7 +1,7 @@
{ {
"name": "谷歌搜索", "name": "谷歌搜索",
"intro": "通过请求谷歌搜索,查询相关内容作为模型的参考。", "intro": "通过请求谷歌搜索,查询相关内容作为模型的参考。",
"author": "FastGPT", "author": "",
"avatar": "/appMarketTemplates/google/avatar.svg", "avatar": "/appMarketTemplates/google/avatar.svg",
"tags": ["recommendation", "web-search"], "tags": ["recommendation", "web-search"],
"type": "advanced", "type": "advanced",

View File

@@ -1,7 +1,7 @@
{ {
"name": "Dalle3 绘图", "name": "Dalle3 绘图",
"intro": "通过请求 Dalle3 接口绘图,需要有 api key", "intro": "通过请求 Dalle3 接口绘图,需要有 api key",
"author": "FastGPT", "author": "",
"avatar": "/appMarketTemplates/plugin-dalle/avatar.svg", "avatar": "/appMarketTemplates/plugin-dalle/avatar.svg",
"type": "plugin", "type": "plugin",
"tags": ["recommendation", "image-generation"], "tags": ["recommendation", "image-generation"],

View File

@@ -1,7 +1,7 @@
{ {
"name": "飞书 webhook 插件", "name": "飞书 webhook 插件",
"intro": "通过 webhook 给飞书机器人发送一条消息", "intro": "通过 webhook 给飞书机器人发送一条消息",
"author": "FastGPT", "author": "",
"avatar": "/appMarketTemplates/plugin-feishu/avatar.svg", "avatar": "/appMarketTemplates/plugin-feishu/avatar.svg",
"type": "plugin", "type": "plugin",
"tags": ["recommendation", "office-services"], "tags": ["recommendation", "office-services"],

View File

@@ -1,7 +1,7 @@
{ {
"name": "知识库+对话引导", "name": "知识库+对话引导",
"intro": "每次提问时进行一次知识库搜索,将搜索结果注入 LLM 模型进行参考回答", "intro": "每次提问时进行一次知识库搜索,将搜索结果注入 LLM 模型进行参考回答",
"author": "FastGPT", "author": "",
"avatar": "core/workflow/template/datasetSearch", "avatar": "core/workflow/template/datasetSearch",
"type": "simple", "type": "simple",
"tags": ["office-services"], "tags": ["office-services"],

View File

@@ -1,7 +1,7 @@
{ {
"name": "长字幕反思翻译机器人", "name": "长字幕反思翻译机器人",
"intro": "利用 AI 自我反思提升翻译质量,同时循环迭代执行 AI 工作流来突破 LLM tokens 限制,实现一个高效的长字幕翻译机器人", "intro": "利用 AI 自我反思提升翻译质量,同时循环迭代执行 AI 工作流来突破 LLM tokens 限制,实现一个高效的长字幕翻译机器人",
"author": "FastGPT", "author": "",
"avatar": "/appMarketTemplates/TranslateRobot/avatar.svg", "avatar": "/appMarketTemplates/TranslateRobot/avatar.svg",
"tags": ["office-services"], "tags": ["office-services"],
"type": "advanced", "type": "advanced",

View File

@@ -1,7 +1,7 @@
{ {
"name": "知道时间的机器人", "name": "知道时间的机器人",
"intro": "通过挂载时间插件,让模型获取当前最新时间", "intro": "通过挂载时间插件,让模型获取当前最新时间",
"author": "FastGPT", "author": "",
"avatar": "core/workflow/template/getTime", "avatar": "core/workflow/template/getTime",
"tags": ["recommendation", "roleplay"], "tags": ["recommendation", "roleplay"],
"type": "simple", "type": "simple",

View File

@@ -309,7 +309,7 @@ const RenderList = React.memo(function RenderList({
</Box> </Box>
{item.author !== undefined && ( {item.author !== undefined && (
<Box fontSize={'xs'} mr={3}> <Box fontSize={'xs'} mr={3}>
{`by ${item.author || feConfigs.systemTitle}`} {`By ${item.author || feConfigs.systemTitle}`}
</Box> </Box>
)} )}
{selected ? ( {selected ? (

View File

@@ -24,6 +24,7 @@ import {
getTemplateMarketItemDetail, getTemplateMarketItemDetail,
getTemplateMarketItemList getTemplateMarketItemList
} from '@/web/core/app/api/template'; } from '@/web/core/app/api/template';
import { useSystemStore } from '@/web/common/system/useSystemStore';
type FormType = { type FormType = {
avatar: string; avatar: string;
@@ -46,6 +47,7 @@ const CreateModal = ({
const router = useRouter(); const router = useRouter();
const { parentId, loadMyApps } = useContextSelector(AppListContext, (v) => v); const { parentId, loadMyApps } = useContextSelector(AppListContext, (v) => v);
const { isPc } = useSystem(); const { isPc } = useSystem();
const { feConfigs } = useSystemStore();
const typeMap = useRef({ const typeMap = useRef({
[AppTypeEnum.simple]: { [AppTypeEnum.simple]: {
@@ -257,7 +259,7 @@ const CreateModal = ({
{t(item.intro as any)} {t(item.intro as any)}
</Box> </Box>
<Box w={'full'} fontSize={'mini'}> <Box w={'full'} fontSize={'mini'}>
<Box color={'myGray.500'}>By {item.author}</Box> <Box color={'myGray.500'}>{`By ${item.author || feConfigs.systemTitle}`}</Box>
<Box <Box
className="buttons" className="buttons"
display={'none'} display={'none'}

View File

@@ -189,7 +189,7 @@ const TemplateMarketModal = ({
</Box> </Box>
<Box w={'full'} fontSize={'mini'}> <Box w={'full'} fontSize={'mini'}>
<Box color={'myGray.500'}>By {item.author}</Box> <Box color={'myGray.500'}>{`by ${item.author || feConfigs.systemTitle}`}</Box>
<Box <Box
className="buttons" className="buttons"
display={'none'} display={'none'}