MCPcopy
hub / github.com/erictik/midjourney-api / init

Method init

src/midjourney.ts:44–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 6

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 3

ConnectMethod · 0.95
SettingsMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected