setShowRetry(false) on success

This commit is contained in:
2023-07-08 14:17:30 +08:00
parent 8fb17ba3f8
commit e2f78987a3

View File

@@ -221,6 +221,7 @@ export default function ChatBOX(props: {
chatStore.totalTokens = client.total_tokens; chatStore.totalTokens = client.total_tokens;
console.log("postBeginIndex", chatStore.postBeginIndex); console.log("postBeginIndex", chatStore.postBeginIndex);
setShowRetry(false);
setChatStore({ ...chatStore }); setChatStore({ ...chatStore });
} catch (error) { } catch (error) {
setShowRetry(true); setShowRetry(true);