mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import type { FlowNodeInputItemType } from '../node/type.d';
|
|
import { ModuleInputKeyEnum } from '../constants';
|
|
import { FlowNodeInputTypeEnum } from '../node/constant';
|
|
import { ModuleDataTypeEnum } from '../constants';
|
|
|
|
export const Input_Template_TFSwitch: FlowNodeInputItemType = {
|
|
key: ModuleInputKeyEnum.switch,
|
|
type: FlowNodeInputTypeEnum.target,
|
|
label: 'core.module.input.label.switch',
|
|
valueType: ModuleDataTypeEnum.any,
|
|
showTargetInApp: true,
|
|
showTargetInPlugin: true
|
|
};
|
|
|
|
export const Input_Template_History: FlowNodeInputItemType = {
|
|
key: ModuleInputKeyEnum.history,
|
|
type: FlowNodeInputTypeEnum.numberInput,
|
|
label: 'core.module.input.label.chat history',
|
|
required: true,
|
|
min: 0,
|
|
max: 30,
|
|
valueType: ModuleDataTypeEnum.chatHistory,
|
|
value: 6,
|
|
showTargetInApp: true,
|
|
showTargetInPlugin: true
|
|
};
|
|
|
|
export const Input_Template_UserChatInput: FlowNodeInputItemType = {
|
|
key: ModuleInputKeyEnum.userChatInput,
|
|
type: FlowNodeInputTypeEnum.target,
|
|
label: 'core.module.input.label.user question',
|
|
required: true,
|
|
valueType: ModuleDataTypeEnum.string,
|
|
showTargetInApp: true,
|
|
showTargetInPlugin: true
|
|
};
|