Fraser commited on
Commit
e223b2b
·
1 Parent(s): e3ff9e1
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) => `Convert this monster concept into a clear and succinct description of its appearance:
45
  "${concept}"
46
 
47
- Include all of its visual details, most importantly include its creature features, format the description as a single long sentence.`;
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. Provide clear, detailed visual descriptions. Do not refer to 'the image' instead just describe all the relevant visual details. Ensure your response is a single descriptive sentence, do not respond with a long paragraph.";
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