mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-10 03:03:43 +08:00
新增清空聊天记录和退出登录功能
This commit is contained in:
@@ -53,6 +53,10 @@ export function appendChatHistory(chatId, message) {
|
||||
Storage.set(ChatHistoryKey, history);
|
||||
}
|
||||
|
||||
export function clearChatHistory() {
|
||||
Storage.remove(ChatHistoryKey);
|
||||
}
|
||||
|
||||
// 获取指定会话的历史记录
|
||||
export function getChatHistory(chatId) {
|
||||
const history = Storage.get(ChatHistoryKey);
|
||||
|
||||
Reference in New Issue
Block a user