src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
@@ -215,7 +215,7 @@ Write your response within \`\`\`json\`\`\``;
|
|
215 |
]);
|
216 |
|
217 |
console.log('Zephyr output:', output);
|
218 |
-
let conceptText = output.data;
|
219 |
|
220 |
state.monsterConcept = conceptText;
|
221 |
console.log('Monster concept generated:', state.monsterConcept);
|
@@ -253,7 +253,7 @@ Write your response within \`\`\`json\`\`\``;
|
|
253 |
]);
|
254 |
|
255 |
console.log('Image prompt output:', output);
|
256 |
-
let promptText = output.data;
|
257 |
|
258 |
state.imagePrompt = promptText;
|
259 |
console.log('Image prompt generated:', state.imagePrompt);
|
@@ -343,7 +343,7 @@ Write your response within \`\`\`json\`\`\``;
|
|
343 |
]);
|
344 |
|
345 |
console.log('Stats output:', output);
|
346 |
-
let jsonString = output.data;
|
347 |
|
348 |
// Extract JSON from the response (remove markdown if present)
|
349 |
let cleanJson = jsonString;
|
|
|
215 |
]);
|
216 |
|
217 |
console.log('Zephyr output:', output);
|
218 |
+
let conceptText = output.data[0];
|
219 |
|
220 |
state.monsterConcept = conceptText;
|
221 |
console.log('Monster concept generated:', state.monsterConcept);
|
|
|
253 |
]);
|
254 |
|
255 |
console.log('Image prompt output:', output);
|
256 |
+
let promptText = output.data[0];
|
257 |
|
258 |
state.imagePrompt = promptText;
|
259 |
console.log('Image prompt generated:', state.imagePrompt);
|
|
|
343 |
]);
|
344 |
|
345 |
console.log('Stats output:', output);
|
346 |
+
let jsonString = output.data[0];
|
347 |
|
348 |
// Extract JSON from the response (remove markdown if present)
|
349 |
let cleanJson = jsonString;
|