From 2ab9a0a46c35c86235cdb8875dbace1140ef54d1 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 24 Mar 2023 15:51:28 +0800 Subject: [PATCH] show correct message.length --- src/chatbox.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 934a223..60d113b 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -166,9 +166,7 @@ export default function ChatBOX(props: { Total: {chatStore.totalTokens}{" "} Max: {chatStore.maxTokens}{" "} Margin: {chatStore.tokenMargin}{" "} - - Message: {chatStore.history.length - chatStore.postBeginIndex} - {" "} + Message: {chatStore.history.length}{" "} Cut: {chatStore.postBeginIndex}