From 2209d618793e8da25200781eeb5300efa7dca05f Mon Sep 17 00:00:00 2001 From: xavidop Date: Thu, 20 Nov 2025 18:09:06 +0100 Subject: [PATCH] fix: improve config --- src/ai/flows/generate-pokemon-card.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ai/flows/generate-pokemon-card.ts b/src/ai/flows/generate-pokemon-card.ts index ace1339..8491288 100644 --- a/src/ai/flows/generate-pokemon-card.ts +++ b/src/ai/flows/generate-pokemon-card.ts @@ -70,6 +70,10 @@ export async function generatePokemonCard(input: GeneratePokemonCardInput): Prom // Use generateContentStream for Gemini models const config = { responseModalities: ['IMAGE', 'TEXT'], + imageConfig: { + aspectRatio: '3:4', + imageSize: '1K', + }, }; const contents = [ { @@ -174,5 +178,6 @@ Below the attacks, the Weakness is ${weakness} (x2), Resistance is ${resistance} ${languageInstruction} The overall style should match official Pokémon TCG card design with proper fonts, layout, and professional quality artwork. -Make sure the information is displayed clearly.`; +Make sure the information is displayed clearly. +The output should just be the card.`; }