perf: extract modules

This commit is contained in:
archer
2023-08-02 18:08:27 +08:00
parent 8862e353aa
commit b7934ecc27
8 changed files with 67 additions and 16 deletions

View File

@@ -1,3 +1,5 @@
import dayjs from 'dayjs';
export enum sseResponseEventEnum {
error = 'error',
answer = 'answer',
@@ -65,3 +67,7 @@ export enum OutLinkTypeEnum {
export const HUMAN_ICON = `https://fastgpt.run/icon/human.png`;
export const LOGO_ICON = `https://fastgpt.run/icon/logo.png`;
export const getDefaultChatVariables = () => ({
cTime: dayjs().format('YYYY/MM/DD HH:mm:ss')
});