mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

* fix http plugin edge (#95) * fix http plugin edge * use getHandleId * perf: i18n file * feat: histories list * perf: request lock * fix: ts * move box components * fix: edit form refresh --------- Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import { FlowNodeTemplateTypeEnum } from '@fastgpt/global/core/workflow/constants';
|
|
import { nodeTemplateListType } from '@fastgpt/global/core/workflow/type';
|
|
import { TFunction } from 'next-i18next';
|
|
|
|
export const workflowNodeTemplateList = (t: TFunction): nodeTemplateListType => [
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.systemInput,
|
|
label: t('core.module.template.System input module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.textAnswer,
|
|
label: t('core.module.template.Response module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.functionCall,
|
|
label: t('core.module.template.Function module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.tools,
|
|
label: t('core.module.template.Tool module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.externalCall,
|
|
label: t('core.module.template.External module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.personalPlugin,
|
|
label: '',
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.other,
|
|
label: t('common.Other'),
|
|
list: []
|
|
}
|
|
];
|