Fix group chats with streaming
This commit is contained in:
parent
8fea486e57
commit
cd2faea2b2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue