Files
FastGPT/client/src/constants/chat.ts
2023-07-25 13:19:58 +08:00

29 lines
655 B
TypeScript

export enum sseResponseEventEnum {
error = 'error',
answer = 'answer',
chatResponse = 'chatResponse', //
appStreamResponse = 'appStreamResponse', // sse response request
moduleFetchResponse = 'moduleFetchResponse' // http module sse response
}
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`;