From 488e441635eddb0914eb42480f20165249db9008 Mon Sep 17 00:00:00 2001
From: heimoshuiyu
Date: Thu, 13 Jul 2023 18:02:13 +0800
Subject: [PATCH] show re-generate and compeletion based on history length
---
src/chatbox.tsx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/chatbox.tsx b/src/chatbox.tsx
index 111996c..08e8ce8 100644
--- a/src/chatbox.tsx
+++ b/src/chatbox.tsx
@@ -371,8 +371,8 @@ export default function ChatBOX(props: {
...
)}
- {chatStore.develop_mode && (
-
+
+ {chatStore.history.length > 0 && (
+ )}
+ {chatStore.develop_mode && chatStore.history.length > 0 && (
-
- )}
+ )}
+
{chatStore.responseModelName && (
<>Generated by {chatStore.responseModelName}>