用户输入框内容会随着Session切换而切换

This commit is contained in:
dakai
2023-04-14 01:34:06 +08:00
parent ef269acc20
commit c67af258d3
3 changed files with 29 additions and 20 deletions

View File

@@ -174,6 +174,7 @@ export interface ChatSession {
stat: ChatStat;
lastUpdate: string;
lastSummarizeIndex: number;
userInput: string;
}
const DEFAULT_TOPIC = Locale.Store.DefaultTopic;
@@ -199,6 +200,7 @@ function createEmptySession(): ChatSession {
},
lastUpdate: createDate,
lastSummarizeIndex: 0,
userInput: "",
};
}