Fix prompt cache after API error

This commit is contained in:
P3il4 2024-03-28 03:32:57 +03:00
parent 4a71bda1dc
commit 6e411b06b9
1 changed files with 2 additions and 0 deletions

View File

@ -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;