| 3332 | 3332 | */ |
| 3333 | 3333 | export async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, maxLoops, quietName } = {}, dryRun = false) { |
| 3334 | 3334 | console.log('Generate entered'); |
| 3335 | 3335 | await eventSource.emit(event_types.GENERATION_STARTED, type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, maxLoops }, dryRun); |
| 3336 | 3336 | setGenerationProgress(0); |
| 3337 | 3337 | generation_started = new Date(); |
| 3338 | 3338 | |