Fraser commited on
Commit
b63d7b9
·
1 Parent(s): 80c9bd1
src/lib/components/MonsterGenerator/MonsterGenerator.svelte CHANGED
@@ -24,14 +24,20 @@
24
  // Prompt templates
25
  const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this image caption: "${caption}"
26
 
27
- Create a Pokémon-style monster inspired by the object in the image. The monster should physically resemble and be based on the actual object's appearance.
28
- Start by assessing the object rarity: Common everyday objects = weak monsters (low stats). Unique/rare objects = powerful monsters (high stats).
 
 
 
 
 
 
29
 
30
  Include:
31
- - How the object's physical form translates into the monster's body
32
- - How its original function becomes abilities
33
- - Personality based on the object's purpose
34
- - Name that references what the object is`;
35
 
36
  const IMAGE_GENERATION_PROMPT = (concept: string) => `Convert this monster concept into a clear and succinct description of its appearance:
37
  "${concept}"
@@ -188,7 +194,7 @@ Write your response within \`\`\`json\`\`\``;
188
  }
189
 
190
  const conceptPrompt = MONSTER_CONCEPT_PROMPT(state.imageCaption);
191
- const systemPrompt = "You are a Pokémon-style monster designer. You create monsters inspired by objects described by in image captions.";
192
 
193
  console.log('Generating monster concept with prompt:', conceptPrompt);
194
 
 
24
  // Prompt templates
25
  const MONSTER_CONCEPT_PROMPT = (caption: string) => `Based on this image caption: "${caption}"
26
 
27
+ Create a Pokémon-style monster that transforms the object into an imaginative creature. The monster should clearly be inspired by the object's appearance but reimagined as a living being with creative features.
28
+
29
+ Guidelines:
30
+ - Take the object's key visual elements (colors, shapes, materials) and incorporate them into a creature design
31
+ - Add creature features like eyes, limbs, mouth, or other body parts that make sense
32
+ - The object should be recognizable but creatively interpreted
33
+
34
+ Rarity assessment: Common objects = weaker monsters. Unique/rare objects = stronger monsters.
35
 
36
  Include:
37
+ - A creative name that hints at the original object
38
+ - Physical description showing how the object becomes a creature
39
+ - Special abilities derived from the object's function
40
+ - Personality traits based on the object's purpose`;
41
 
42
  const IMAGE_GENERATION_PROMPT = (concept: string) => `Convert this monster concept into a clear and succinct description of its appearance:
43
  "${concept}"
 
194
  }
195
 
196
  const conceptPrompt = MONSTER_CONCEPT_PROMPT(state.imageCaption);
197
+ const systemPrompt = "You are a creative Pokémon designer. Transform everyday objects into imaginative monsters by blending their characteristics with creature features. Think like the designers who turned a Pokéball into Voltorb, a keyring into Klefki, or an ice cream cone into Vanillite. Be creative and whimsical while keeping the object recognizable.";
198
 
199
  console.log('Generating monster concept with prompt:', conceptPrompt);
200