perf: completion dispatch
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
/* app */
|
||||
export enum AppModuleItemTypeEnum {
|
||||
'variable' = 'variable',
|
||||
'userGuide' = 'userGuide',
|
||||
'initInput' = 'initInput',
|
||||
'http' = 'http', // send a http request
|
||||
'switch' = 'switch', // one input and two outputs
|
||||
'answer' = 'answer' // redirect response
|
||||
}
|
||||
export enum SystemInputEnum {
|
||||
'welcomeText' = 'welcomeText',
|
||||
'variables' = 'variables',
|
||||
@@ -14,10 +6,7 @@ export enum SystemInputEnum {
|
||||
'history' = 'history',
|
||||
'userChatInput' = 'userChatInput'
|
||||
}
|
||||
export enum TaskResponseKeyEnum {
|
||||
'answerText' = 'answerText', // answer module text key
|
||||
'responseData' = 'responseData'
|
||||
}
|
||||
|
||||
export enum VariableInputEnum {
|
||||
input = 'input',
|
||||
select = 'select'
|
||||
|
||||
@@ -12,6 +12,11 @@ export enum ChatRoleEnum {
|
||||
AI = 'AI'
|
||||
}
|
||||
|
||||
export enum TaskResponseKeyEnum {
|
||||
'answerText' = 'answerText', // answer module text key
|
||||
'responseData' = 'responseData'
|
||||
}
|
||||
|
||||
export const ChatRoleMap = {
|
||||
[ChatRoleEnum.System]: {
|
||||
name: '系统提示词'
|
||||
@@ -46,10 +51,5 @@ export const ChatSourceMap = {
|
||||
}
|
||||
};
|
||||
|
||||
export const responseDataKey = 'responseData';
|
||||
|
||||
export const rawSearchKey = 'rawSearch';
|
||||
export const quoteLenKey = 'quoteLen';
|
||||
|
||||
export const HUMAN_ICON = `https://fastgpt.run/icon/human.png`;
|
||||
export const LOGO_ICON = `https://fastgpt.run/icon/logo.png`;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -19,9 +19,10 @@ export enum FlowOutputItemTypeEnum {
|
||||
}
|
||||
|
||||
export enum FlowModuleTypeEnum {
|
||||
empty = 'empty',
|
||||
variable = 'variable',
|
||||
userGuide = 'userGuide',
|
||||
questionInputNode = 'questionInput',
|
||||
questionInput = 'questionInput',
|
||||
historyNode = 'historyNode',
|
||||
chatNode = 'chatNode',
|
||||
kbSearchNode = 'kbSearchNode',
|
||||
@@ -30,6 +31,11 @@ export enum FlowModuleTypeEnum {
|
||||
classifyQuestion = 'classifyQuestion'
|
||||
}
|
||||
|
||||
export const initModuleType: Record<string, boolean> = {
|
||||
[FlowModuleTypeEnum.historyNode]: true,
|
||||
[FlowModuleTypeEnum.questionInput]: true
|
||||
};
|
||||
|
||||
export const edgeOptions = {
|
||||
style: {
|
||||
strokeWidth: 1,
|
||||
|
||||
Reference in New Issue
Block a user