From 491f3254a53075af53164e1528e3196d7ef93e07 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Fri, 6 Sep 2024 15:38:02 -0700 Subject: [PATCH] regeneration - don't remove human message unnecessarily --- web/src/app/chat/ChatPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index 6499cde5fb4..922a4342368 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -1785,7 +1785,7 @@ export function ChatPage({ : null; if ( currentSessionRegenerationState?.regenerating && - message.messageId >= + message.messageId > currentSessionRegenerationState?.finalMessageIndex! ) { return <>;