mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Force generate unlock on wrapped API error
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user