Fix group chats with streaming

This commit is contained in:
Cohee 2023-08-24 17:46:44 +03:00
parent 8fea486e57
commit cd2faea2b2
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import {
extractAllWords, extractAllWords,
saveBase64AsFile, saveBase64AsFile,
PAGINATION_TEMPLATE, PAGINATION_TEMPLATE,
waitUntilCondition,
} from './utils.js'; } from './utils.js';
import { RA_CountCharTokens, humanizedDateTime, dragElement, favsToHotswap, getMessageTimeStamp } from "./RossAscends-mods.js"; import { RA_CountCharTokens, humanizedDateTime, dragElement, favsToHotswap, getMessageTimeStamp } from "./RossAscends-mods.js";
import { loadMovingUIState, sortEntitiesList } from './power-user.js'; import { loadMovingUIState, sortEntitiesList } from './power-user.js';
@ -665,6 +666,7 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
if (streamingProcessor && !streamingProcessor.isFinished) { if (streamingProcessor && !streamingProcessor.isFinished) {
await delay(100); await delay(100);
} else { } else {
await waitUntilCondition(() => streamingProcessor == null, 1000, 10);
messagesBefore++; messagesBefore++;
break; break;
} }