mirror of
https://github.com/xavidop/cardex.git
synced 2026-08-28 17:01:07 +00:00
fix: improve config
This commit is contained in:
@@ -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.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user