perf: response key
This commit is contained in:
@@ -14,8 +14,9 @@ export enum SystemInputEnum {
|
||||
'history' = 'history',
|
||||
'userChatInput' = 'userChatInput'
|
||||
}
|
||||
export enum SpecificInputEnum {
|
||||
'answerText' = 'answerText' // answer module text key
|
||||
export enum TaskResponseKeyEnum {
|
||||
'answerText' = 'answerText', // answer module text key
|
||||
'responseData' = 'responseData'
|
||||
}
|
||||
export enum VariableInputEnum {
|
||||
input = 'input',
|
||||
|
||||
@@ -24,6 +24,30 @@ export const ChatRoleMap = {
|
||||
}
|
||||
};
|
||||
|
||||
export enum ChatSourceEnum {
|
||||
'test' = 'test',
|
||||
online = 'online',
|
||||
share = 'share',
|
||||
api = 'api'
|
||||
}
|
||||
|
||||
export const ChatSourceMap = {
|
||||
[ChatSourceEnum.test]: {
|
||||
name: '调试测试'
|
||||
},
|
||||
[ChatSourceEnum.online]: {
|
||||
name: '在线使用'
|
||||
},
|
||||
[ChatSourceEnum.share]: {
|
||||
name: '链接分享'
|
||||
},
|
||||
[ChatSourceEnum.api]: {
|
||||
name: 'API调用'
|
||||
}
|
||||
};
|
||||
|
||||
export const responseDataKey = 'responseData';
|
||||
|
||||
export const rawSearchKey = 'rawSearch';
|
||||
export const quoteLenKey = 'quoteLen';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AppModuleItemTypeEnum, SystemInputEnum, SpecificInputEnum } from '../app';
|
||||
import { AppModuleItemTypeEnum, SystemInputEnum, TaskResponseKeyEnum } from '../app';
|
||||
import { FlowModuleTypeEnum, FlowInputItemTypeEnum, FlowOutputItemTypeEnum } from './index';
|
||||
import type { AppItemType, AppModuleTemplateItemType } from '@/types/app';
|
||||
import { chatModelList } from '@/store/static';
|
||||
@@ -177,7 +177,7 @@ export const ChatModule: AppModuleTemplateItemType = {
|
||||
],
|
||||
outputs: [
|
||||
{
|
||||
key: SpecificInputEnum.answerText,
|
||||
key: TaskResponseKeyEnum.answerText,
|
||||
label: '模型回复',
|
||||
description: '直接响应,无需配置',
|
||||
type: FlowOutputItemTypeEnum.hidden,
|
||||
@@ -264,7 +264,7 @@ export const AnswerModule: AppModuleTemplateItemType = {
|
||||
inputs: [
|
||||
Input_Template_TFSwitch,
|
||||
{
|
||||
key: SpecificInputEnum.answerText,
|
||||
key: TaskResponseKeyEnum.answerText,
|
||||
value: '',
|
||||
type: FlowInputItemTypeEnum.textarea,
|
||||
label: '回复的内容'
|
||||
|
||||
Reference in New Issue
Block a user