mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Error handling for Comfy request
This commit is contained in:
@@ -2673,6 +2673,10 @@ async function generateComfyImage(prompt, negativePrompt) {
|
|||||||
}`,
|
}`,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
if (!promptResult.ok) {
|
||||||
|
const text = await promptResult.text();
|
||||||
|
throw new Error(text);
|
||||||
|
}
|
||||||
return { format: 'png', data: await promptResult.text() };
|
return { format: 'png', data: await promptResult.text() };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user