mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 00:14:51 +00:00
V4.12.3 features (#5595)
* refactor: remove ModelProviderIdType and update related types (#5549) * perf: model provider * fix eval create split (#5570) * git rebase --continuedoc * add more variable types (#5540) * variable types * password * time picker * internal var * file * fix-test * time select default value & range * password & type render * fix * fix build * fix * move method * split date select * icon * perf: variable code * prompt editor add markdown plugin (#5556) * editor markdown * fix build * pnpm lock * add props * update code * fix list * editor ui * fix variable reset (#5586) * perf: variables type code * customize lexical indent (#5588) * perf: multiple selector * perf: tab plugin * doc * refactor: update workflow constants to use ToolTypeEnum (#5491) * refactor: replace FlowNodeTemplateTypeEnum with string literals in workflow templates * perf: tool type --------- Co-authored-by: archer <545436317@qq.com> * update doc * fix: make table's row more natural while dragging it (#5596) * feat: add APIGetTemplate function and refactor template fetching logic (#5498) * feat: add APIGetTemplate function and refactor template fetching logic * chore: adjust the code * chore: update sdk --------- Co-authored-by: FinleyGe <m13203533462@163.com> * perf init system * doc * remove log * remove i18n * perf: variables render --------- Co-authored-by: Ctrlz <143257420+ctrlz526@users.noreply.github.com> Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: 伍闲犬 <whoeverimf5@gmail.com> Co-authored-by: FinleyGe <m13203533462@163.com>
This commit is contained in:
@@ -1,61 +1,10 @@
|
||||
import { FlowNodeTemplateTypeEnum } from '@fastgpt/global/core/workflow/constants';
|
||||
import { i18nT } from '../../i18n/utils';
|
||||
import type { PluginGroupSchemaType, TGroupType } from '../../../service/core/app/plugin/type';
|
||||
import type { SystemToolGroupSchemaType } from '../../../service/core/app/plugin/type';
|
||||
import { AppTemplateTypeEnum } from '@fastgpt/global/core/app/constants';
|
||||
import { type TemplateTypeSchemaType } from '@fastgpt/global/core/app/type';
|
||||
|
||||
export const systemPluginTemplateList: TGroupType[] = [
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.tools,
|
||||
typeName: i18nT('app:tool_type_tools')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.search,
|
||||
typeName: i18nT('app:tool_type_search')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.multimodal,
|
||||
typeName: i18nT('app:tool_type_multimodal')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.productivity,
|
||||
typeName: i18nT('app:tool_type_productivity')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.scientific,
|
||||
typeName: i18nT('app:tool_type_scientific')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.finance,
|
||||
typeName: i18nT('app:tool_type_finance')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.design,
|
||||
typeName: i18nT('app:tool_type_design')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.news,
|
||||
typeName: i18nT('app:tool_type_news')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.entertainment,
|
||||
typeName: i18nT('app:tool_type_entertainment')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.communication,
|
||||
typeName: i18nT('app:tool_type_communication')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.social,
|
||||
typeName: i18nT('app:tool_type_social')
|
||||
},
|
||||
{
|
||||
typeId: FlowNodeTemplateTypeEnum.other,
|
||||
typeName: i18nT('common:Other')
|
||||
}
|
||||
];
|
||||
|
||||
export const workflowNodeTemplateList: {
|
||||
export const workflowSystemNodeTemplateList: {
|
||||
type: string;
|
||||
label: string;
|
||||
}[] = [
|
||||
@@ -67,28 +16,27 @@ export const workflowNodeTemplateList: {
|
||||
type: FlowNodeTemplateTypeEnum.ai,
|
||||
label: i18nT('common:core.module.template.AI function')
|
||||
},
|
||||
|
||||
{
|
||||
type: FlowNodeTemplateTypeEnum.interactive,
|
||||
label: i18nT('common:core.workflow.template.Interactive')
|
||||
},
|
||||
|
||||
...systemPluginTemplateList.map((item) => ({
|
||||
type: item.typeId,
|
||||
label: item.typeName
|
||||
})),
|
||||
|
||||
{
|
||||
type: FlowNodeTemplateTypeEnum.teamApp,
|
||||
label: ''
|
||||
type: FlowNodeTemplateTypeEnum.tools,
|
||||
label: i18nT('app:tool_type_tools')
|
||||
},
|
||||
{
|
||||
type: FlowNodeTemplateTypeEnum.other,
|
||||
label: i18nT('common:Other')
|
||||
}
|
||||
];
|
||||
|
||||
export const defaultGroup: PluginGroupSchemaType = {
|
||||
export const defaultGroup: SystemToolGroupSchemaType = {
|
||||
groupId: 'systemPlugin',
|
||||
groupAvatar: 'core/app/type/pluginLight',
|
||||
groupName: i18nT('common:core.module.template.System Plugin'),
|
||||
groupOrder: 0,
|
||||
groupTypes: systemPluginTemplateList
|
||||
groupTypes: [] // from getPluginGroups
|
||||
};
|
||||
|
||||
export const defaultTemplateTypes: TemplateTypeSchemaType[] = [
|
||||
|
Reference in New Issue
Block a user