mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix group chats with streaming
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user