From e2f78987a33c9fa6e1f404db5b217428e329fe80 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sat, 8 Jul 2023 14:17:30 +0800 Subject: [PATCH] setShowRetry(false) on success --- src/chatbox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index a87c58e..65a1a13 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -221,6 +221,7 @@ export default function ChatBOX(props: { chatStore.totalTokens = client.total_tokens; console.log("postBeginIndex", chatStore.postBeginIndex); + setShowRetry(false); setChatStore({ ...chatStore }); } catch (error) { setShowRetry(true);