Force generate unlock on wrapped API error

This commit is contained in:
Cohee 2024-05-19 16:25:22 +03:00
parent b32330df0f
commit e9c5618b10
1 changed files with 1 additions and 0 deletions

View File

@ -4132,6 +4132,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
let messageChunk = ''; let messageChunk = '';
if (data.error) { if (data.error) {
unblockGeneration(type);
generatedPromptCache = ''; generatedPromptCache = '';
if (data?.response) { if (data?.response) {