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

* feat: add user select node (#2300) * feat: add user select node * fix * type * fix * fix * fix * perf: user select code * perf: user select histories * perf: i18n --------- Co-authored-by: heheer <heheer@sealos.io>
67 lines
1.3 KiB
TypeScript
67 lines
1.3 KiB
TypeScript
import { i18nT } from '../../../web/i18n/utils';
|
|
|
|
export enum ChatRoleEnum {
|
|
System = 'System',
|
|
Human = 'Human',
|
|
AI = 'AI'
|
|
}
|
|
export const ChatRoleMap = {
|
|
[ChatRoleEnum.System]: {
|
|
name: '系统'
|
|
},
|
|
[ChatRoleEnum.Human]: {
|
|
name: '用户'
|
|
},
|
|
[ChatRoleEnum.AI]: {
|
|
name: 'AI'
|
|
}
|
|
};
|
|
|
|
export enum ChatFileTypeEnum {
|
|
image = 'image',
|
|
file = 'file'
|
|
}
|
|
export enum ChatItemValueTypeEnum {
|
|
text = 'text',
|
|
file = 'file',
|
|
tool = 'tool',
|
|
interactive = 'interactive'
|
|
}
|
|
|
|
export enum ChatSourceEnum {
|
|
test = 'test',
|
|
online = 'online',
|
|
share = 'share',
|
|
api = 'api',
|
|
team = 'team',
|
|
feishu = 'feishu'
|
|
}
|
|
export const ChatSourceMap = {
|
|
[ChatSourceEnum.test]: {
|
|
name: i18nT('common:core.chat.logs.test')
|
|
},
|
|
[ChatSourceEnum.online]: {
|
|
name: i18nT('common:core.chat.logs.online')
|
|
},
|
|
[ChatSourceEnum.share]: {
|
|
name: i18nT('common:core.chat.logs.share')
|
|
},
|
|
[ChatSourceEnum.api]: {
|
|
name: i18nT('common:core.chat.logs.api')
|
|
},
|
|
[ChatSourceEnum.team]: {
|
|
name: i18nT('common:core.chat.logs.team')
|
|
},
|
|
[ChatSourceEnum.feishu]: {
|
|
name: i18nT('common:core.chat.logs.feishu')
|
|
}
|
|
};
|
|
|
|
export enum ChatStatusEnum {
|
|
loading = 'loading',
|
|
running = 'running',
|
|
finish = 'finish'
|
|
}
|
|
|
|
export const MARKDOWN_QUOTE_SIGN = 'QUOTE SIGN';
|