clear history reset postBeginIndex totalTokens

This commit is contained in:
2023-03-17 09:31:07 +08:00
parent 1372121e32
commit 9b5730760a

View File

@@ -172,6 +172,8 @@ export default (props: {
)
return;
props.chatStore.history = [];
props.chatStore.postBeginIndex = 0;
props.chatStore.totalTokens = 0;
props.setChatStore({ ...props.chatStore });
}}
>