diff --git a/src/settings.tsx b/src/settings.tsx index c25637f..4fd2c78 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -209,9 +209,10 @@ export default (props: { ) ) return; - props.chatStore.history = []; + props.chatStore.history = props.chatStore.history.filter( + (msg) => msg.example && !msg.hide + ); props.chatStore.postBeginIndex = 0; - props.chatStore.totalTokens = 0; props.setChatStore({ ...props.chatStore }); }} >