Force generate unlock on wrapped API error
This commit is contained in:
parent
b32330df0f
commit
e9c5618b10
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue