From f76db66e2565a1d3e95a3d30f17687d51a1b4ea7 Mon Sep 17 00:00:00 2001 From: Cohee Date: Mon, 10 Jul 2023 18:13:11 +0300 Subject: [PATCH] Modify quiet prompt sending to text completion models. --- public/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 11bbd2430..fbc22e475 100644 --- a/public/script.js +++ b/public/script.js @@ -2481,6 +2481,8 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, const name = is_pygmalion ? 'You' : name1; const quietAppend = isInstruct ? formatInstructModeChat(name, quiet_prompt, false, true, false, name1, name2) : `\n${name}: ${quiet_prompt}`; mesSendString += quietAppend; + // Bail out early + return mesSendString; } // Get instruct mode line @@ -8524,4 +8526,4 @@ $(document).ready(function () { } } } -}) \ No newline at end of file +})