From dbf964e43064bc2c62da1a647b44ce6aa2f31e2e Mon Sep 17 00:00:00 2001 From: kingbri Date: Mon, 9 Oct 2023 22:03:37 -0400 Subject: [PATCH] Script: Fix greeting message with continue Add author's note when continuing the first message of a conversation. Signed-off-by: kingbri --- public/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index dc718241d..6ce03c171 100644 --- a/public/script.js +++ b/public/script.js @@ -2690,7 +2690,8 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, pinExmString = examplesString = mesExamplesArray.join(''); } - if (isContinue) { + // Only add the chat in context if past the greeting message + if (isContinue && chat2.length > 1) { cyclePrompt = chat2.shift(); }