mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
27 lines
510 B
TypeScript
27 lines
510 B
TypeScript
export enum sseResponseEventEnum {
|
|
error = 'error',
|
|
answer = 'answer',
|
|
chatResponse = 'chatResponse'
|
|
}
|
|
|
|
export enum ChatRoleEnum {
|
|
System = 'System',
|
|
Human = 'Human',
|
|
AI = 'AI'
|
|
}
|
|
|
|
export const ChatRoleMap = {
|
|
[ChatRoleEnum.System]: {
|
|
name: '系统提示词'
|
|
},
|
|
[ChatRoleEnum.Human]: {
|
|
name: '用户'
|
|
},
|
|
[ChatRoleEnum.AI]: {
|
|
name: 'AI'
|
|
}
|
|
};
|
|
|
|
export const HUMAN_ICON = `https://fastgpt.run/icon/human.png`;
|
|
export const LOGO_ICON = `https://fastgpt.run/imgs/modelAvatar.png`;
|