diff --git a/public/script.js b/public/script.js index b0614809d..fb4e35ca9 100644 --- a/public/script.js +++ b/public/script.js @@ -2032,7 +2032,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, let mesSend = []; console.log('calling runGenerate'); streamingProcessor = isStreamingEnabled() ? new StreamingProcessor(type, force_name2) : false; - await runGenerate(); + runGenerate(); async function runGenerate(cycleGenerationPromt = '') { is_send_press = true; diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 5b821fcd9..8371f9c7f 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -512,7 +512,7 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) { setCharacterId(chId); setCharacterName(characters[chId].name) - Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) }); + await Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) }); if (type !== "swipe" && type !== "impersonate" && !isMultigenEnabled() && !isStreamingEnabled()) { // update indicator and scroll down