mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Return from Generate if calling circuit breaker
This commit is contained in:
@ -1781,13 +1781,14 @@ async function generateMultimodalPrompt(generationType, quietPrompt) {
|
||||
*/
|
||||
async function generatePrompt(quietPrompt) {
|
||||
const reply = await generateQuietPrompt(quietPrompt, false, false);
|
||||
const processedReply = processReply(reply);
|
||||
|
||||
if (!reply) {
|
||||
if (!processedReply) {
|
||||
toastr.error('Prompt generation produced no text. Make sure you\'re using a valid instruct template and try again', 'Image Generation');
|
||||
throw new Error('Prompt generation failed.');
|
||||
}
|
||||
|
||||
return processReply(reply);
|
||||
return processedReply;
|
||||
}
|
||||
|
||||
async function sendGenerationRequest(generationType, prompt, characterName = null, callback) {
|
||||
|
Reference in New Issue
Block a user