Await GENERATION_STARTED event

1c421cc117e12afd16c1aeab3ebcabca417b49ca

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -3332,7 +3332,7 @@ function removeLastMessage() {
33323332 */
33333333export async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, maxLoops, quietName } = {}, dryRun = false) {
33343334 console.log('Generate entered');
33353335 await eventSource.emit(event_types.GENERATION_STARTED, type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, maxLoops }, dryRun);
33363336 setGenerationProgress(0);
33373337 generation_started = new Date();
33383338