diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 8eb58706f..5b821fcd9 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -512,6 +512,8 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) { setCharacterId(chId); setCharacterName(characters[chId].name) + Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) }); + if (type !== "swipe" && type !== "impersonate" && !isMultigenEnabled() && !isStreamingEnabled()) { // update indicator and scroll down typingIndicator @@ -523,8 +525,6 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) { }); } - Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) }); - // TODO: This is awful. Refactor this while (true) { deactivateSendButtons(); diff --git a/public/scripts/utils.js b/public/scripts/utils.js index d9b921ccc..1ecde14cc 100644 --- a/public/scripts/utils.js +++ b/public/scripts/utils.js @@ -162,7 +162,7 @@ export function saveCaretPosition(element) { end: range.endOffset }; - console.log('Caret saved', position); + console.debug('Caret saved', position); return position; } @@ -174,7 +174,7 @@ export function restoreCaretPosition(element, position) { return; } - console.log('Caret restored', position); + console.debug('Caret restored', position); // Create a new range object const range = new Range();