From 9b5730760a2952f7c6cae6b7c4e5c4074e505a0d Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 17 Mar 2023 09:31:07 +0800 Subject: [PATCH] clear history reset postBeginIndex totalTokens --- src/settings.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings.tsx b/src/settings.tsx index 5b1c8e3..322c41e 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -172,6 +172,8 @@ export default (props: { ) return; props.chatStore.history = []; + props.chatStore.postBeginIndex = 0; + props.chatStore.totalTokens = 0; props.setChatStore({ ...props.chatStore }); }} >