brief
Browse files
src/lib/components/MonsterGenerator/MonsterGenerator.svelte
CHANGED
@@ -41,10 +41,10 @@ Include:
|
|
41 |
- Special abilities derived from the object's function
|
42 |
- Personality traits based on the object's purpose`;
|
43 |
|
44 |
-
const IMAGE_GENERATION_PROMPT = (concept: string) => `
|
45 |
"${concept}"
|
46 |
|
47 |
-
|
48 |
|
49 |
const MONSTER_STATS_PROMPT = (concept: string) => `Convert the following monster concept into a JSON object with stats:
|
50 |
"${concept}"
|
@@ -233,7 +233,7 @@ Write your response within \`\`\`json\`\`\``;
|
|
233 |
}
|
234 |
|
235 |
const promptGenerationPrompt = IMAGE_GENERATION_PROMPT(state.monsterConcept);
|
236 |
-
const systemPrompt = "You are an expert at creating visual descriptions for image generation.
|
237 |
|
238 |
console.log('Generating image prompt from concept');
|
239 |
|
|
|
41 |
- Special abilities derived from the object's function
|
42 |
- Personality traits based on the object's purpose`;
|
43 |
|
44 |
+
const IMAGE_GENERATION_PROMPT = (concept: string) => `Extract ONLY the visual appearance from this monster concept and describe it in one concise sentence:
|
45 |
"${concept}"
|
46 |
|
47 |
+
Focus on: colors, body shape, eyes, limbs, mouth, and key visual features. Omit backstory, abilities, and non-visual details.`;
|
48 |
|
49 |
const MONSTER_STATS_PROMPT = (concept: string) => `Convert the following monster concept into a JSON object with stats:
|
50 |
"${concept}"
|
|
|
233 |
}
|
234 |
|
235 |
const promptGenerationPrompt = IMAGE_GENERATION_PROMPT(state.monsterConcept);
|
236 |
+
const systemPrompt = "You are an expert at creating concise visual descriptions for image generation. Extract ONLY visual appearance details and describe them in ONE sentence (max 50 words). Focus on colors, shape, eyes, limbs, and distinctive features. Omit all non-visual information like abilities, personality, or backstory.";
|
237 |
|
238 |
console.log('Generating image prompt from concept');
|
239 |
|