perf: response key

This commit is contained in:
archer
2023-07-21 19:49:18 +08:00
parent fdcf53ea38
commit e49a831cc4
8 changed files with 67 additions and 48 deletions

View File

@@ -24,6 +24,30 @@ export const ChatRoleMap = {
}
};
export enum ChatSourceEnum {
'test' = 'test',
online = 'online',
share = 'share',
api = 'api'
}
export const ChatSourceMap = {
[ChatSourceEnum.test]: {
name: '调试测试'
},
[ChatSourceEnum.online]: {
name: '在线使用'
},
[ChatSourceEnum.share]: {
name: '链接分享'
},
[ChatSourceEnum.api]: {
name: 'API调用'
}
};
export const responseDataKey = 'responseData';
export const rawSearchKey = 'rawSearch';
export const quoteLenKey = 'quoteLen';