Typing indicator fixed

This commit is contained in:
Cohee 2023-12-11 18:23:00 +02:00
parent 3ab1962b84
commit 0fcf8fd491
2 changed files with 5 additions and 4 deletions

View File

@ -716,10 +716,6 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
setCharacterId(chId); setCharacterId(chId);
setCharacterName(characters[chId].name); setCharacterName(characters[chId].name);
// Wait for generation to finish
const generateFinished = await Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) });
await generateFinished;
if (type !== 'swipe' && type !== 'impersonate' && !isStreamingEnabled()) { if (type !== 'swipe' && type !== 'impersonate' && !isStreamingEnabled()) {
// update indicator and scroll down // update indicator and scroll down
typingIndicator typingIndicator
@ -727,6 +723,10 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
.text(characters[chId].name); .text(characters[chId].name);
typingIndicator.show(); typingIndicator.show();
} }
// Wait for generation to finish
const generateFinished = await Generate(generateType, { automatic_trigger: by_auto_mode, ...(params || {}) });
await generateFinished;
} }
} finally { } finally {
typingIndicator.hide(); typingIndicator.hide();

View File

@ -636,6 +636,7 @@ hr {
display: none; display: none;
order: 2; order: 2;
padding-right: 2px; padding-right: 2px;
place-self: center;
} }
#options_button { #options_button {