()
| 42 | return this; |
| 43 | } |
| 44 | async init() { |
| 45 | await this.Connect(); |
| 46 | const settings = await this.Settings(); |
| 47 | if (settings) { |
| 48 | // this.log(`settings:`, settings.content); |
| 49 | const remix = settings.options.find((o) => o.label === "Remix mode"); |
| 50 | if (remix?.style == 3) { |
| 51 | this.config.Remix = true; |
| 52 | this.log(`Remix mode enabled`); |
| 53 | } |
| 54 | } |
| 55 | return this; |
| 56 | } |
| 57 | async Imagine(prompt: string, loading?: LoadingHandler) { |
| 58 | prompt = prompt.trim(); |
| 59 | if (!this.config.Ws) { |