@zodic/shared 0.0.88 → 0.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
5
5
|
import { schema } from '../..';
|
|
6
6
|
import { Languages } from '../../types';
|
|
7
7
|
import { KVConcept, sizes } from '../../types/scopes/legacy';
|
|
8
|
+
import { leonardoInitImages } from '../../utils/initImages';
|
|
8
9
|
import { buildConceptKVKey } from '../../utils/KVKeysBuilders';
|
|
9
10
|
import { AppContext } from '../base/AppContext';
|
|
10
11
|
|
|
@@ -198,16 +199,14 @@ export class ConceptService {
|
|
|
198
199
|
const [planet1Sign, planet2Sign, planet3Sign] =
|
|
199
200
|
combinationString.split('-');
|
|
200
201
|
|
|
201
|
-
if (!planet1Sign || !planet2Sign ||
|
|
202
|
+
if (!planet1Sign || !planet2Sign || !planet3Sign) {
|
|
202
203
|
throw new Error(
|
|
203
204
|
`❌ Invalid combinationString: ${combinationString} (Expected format: sign1-sign2-[sign3])`
|
|
204
205
|
);
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
console.log(
|
|
208
|
-
`🌌 Extracted planet signs: ${planet1} -> ${planet1Sign}, ${planet2} -> ${planet2Sign}, ${
|
|
209
|
-
planet3 || 'N/A'
|
|
210
|
-
} -> ${planet3Sign || 'N/A'}`
|
|
209
|
+
`🌌 Extracted planet signs: ${planet1} -> ${planet1Sign}, ${planet2} -> ${planet2Sign}, ${planet3} -> ${planet3Sign}`
|
|
211
210
|
);
|
|
212
211
|
|
|
213
212
|
// 🔍 Ensure Concept Combination exists
|
|
@@ -255,6 +254,14 @@ export class ConceptService {
|
|
|
255
254
|
prompt: concept.leonardoPrompt,
|
|
256
255
|
width,
|
|
257
256
|
height,
|
|
257
|
+
controlNets: [
|
|
258
|
+
{
|
|
259
|
+
"initImageId": leonardoInitImages.concetps.crown.imageId,
|
|
260
|
+
"initImageType": "UPLOADED",
|
|
261
|
+
"preprocessorId": 100, // content reference
|
|
262
|
+
"strengthType": "Low",
|
|
263
|
+
},
|
|
264
|
+
]
|
|
258
265
|
});
|
|
259
266
|
|
|
260
267
|
const generationId = leonardoResponse?.sdGenerationJob?.generationId;
|
package/package.json
CHANGED