From 6e411b06b9b823af79a1874439a4221836846359 Mon Sep 17 00:00:00 2001 From: P3il4 <42489293+P3il4@users.noreply.github.com> Date: Thu, 28 Mar 2024 03:32:57 +0300 Subject: [PATCH] Fix prompt cache after API error --- public/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/script.js b/public/script.js index 36539cc9a..97e30e42f 100644 --- a/public/script.js +++ b/public/script.js @@ -3973,6 +3973,8 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu toastr.error(exception.error.message, 'Error', { timeOut: 10000, extendedTimeOut: 20000 }); } + generatedPromptCache = ''; + unblockGeneration(); console.log(exception); streamingProcessor = null;