From 7be3718a368f18611ca7a0f684b01977245d2a6f Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:54:09 +0300 Subject: [PATCH] Fix first.mes continue for Chat Comps --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 6ce03c171..c26143b76 100644 --- a/public/script.js +++ b/public/script.js @@ -2691,7 +2691,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, } // Only add the chat in context if past the greeting message - if (isContinue && chat2.length > 1) { + if (isContinue && (chat2.length > 1 || main_api === 'openai')) { cyclePrompt = chat2.shift(); }