perf: save chat and del chat content;UI

This commit is contained in:
archer
2023-04-30 13:18:54 +08:00
parent c971adaabd
commit f109f1cf60
19 changed files with 100 additions and 95 deletions

6
src/types/chat.d.ts vendored
View File

@@ -1,5 +1,7 @@
export type ChatItemType = {
export type ChatItemSimpleType = {
obj: 'Human' | 'AI' | 'SYSTEM';
value: string;
deleted?: boolean;
};
export type ChatItemType = {
_id: string;
} & ChatItemSimpleType;