Fraser commited on
Commit
81c7956
·
1 Parent(s): 08f60f4
src/lib/components/MonsterGenerator/MonsterGenerator.svelte CHANGED
@@ -177,14 +177,14 @@ Focus on: colors, body shape, eyes, limbs, mouth, and key visual features. Omit
177
  }
178
 
179
  try {
180
- const output = await joyCaptionClient.predict("/stream_chat", [
181
- state.userImage,
182
- "Creative" as CaptionType,
183
- "very long" as CaptionLength,
184
- [], // extra_options
185
- "", // name_input
186
- MONSTER_GENERATION_PROMPT // custom_prompt
187
- ]);
188
 
189
  const [prompt, caption] = output.data;
190
  // The caption now contains the full monster concept with lore, visual description, and rarity
 
177
  }
178
 
179
  try {
180
+ const output = await joyCaptionClient.predict("/stream_chat", {
181
+ input_image: state.userImage,
182
+ caption_type: "Descriptive", // Using descriptive type as base
183
+ caption_length: "very long", // Needs to be string
184
+ extra_options: [], // No extra options needed
185
+ name_input: "", // No name needed
186
+ custom_prompt: MONSTER_GENERATION_PROMPT // Our custom monster generation prompt
187
+ });
188
 
189
  const [prompt, caption] = output.data;
190
  // The caption now contains the full monster concept with lore, visual description, and rarity