feat: render message reference and add avatar to MessageItem (#73)

* feat: add temporary conversation

* feat: add avatar to MessageItem

* feat: render message reference
This commit is contained in:
balibabu
2024-02-26 18:38:54 +08:00
committed by GitHub
parent 17d751d2d1
commit d1417102b6
15 changed files with 1165 additions and 154 deletions

View File

@ -1,4 +1,4 @@
import { variableEnabledFieldMap } from './constants';
import { EmptyConversationId, variableEnabledFieldMap } from './constants';
export const excludeUnEnabledVariables = (values: any) => {
const unEnabledFields: Array<keyof typeof variableEnabledFieldMap> =
@ -10,3 +10,7 @@ export const excludeUnEnabledVariables = (values: any) => {
(key) => `llm_setting.${variableEnabledFieldMap[key]}`,
);
};
export const isConversationIdNotExist = (conversationId: string) => {
return conversationId !== EmptyConversationId && conversationId !== '';
};