From 20c7a69bb1cbbf29cde04ace321ed0c57373c890 Mon Sep 17 00:00:00 2001 From: Ingrid Fielker Date: Tue, 26 Aug 2025 13:45:33 -0400 Subject: [PATCH] chore(js/plugins/google-genai): add nano banana model and sample --- js/plugins/google-genai/src/googleai/gemini.ts | 1 + samples/js-gemini/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/plugins/google-genai/src/googleai/gemini.ts b/js/plugins/google-genai/src/googleai/gemini.ts index d500fa41e4..0a6f84eafa 100644 --- a/js/plugins/google-genai/src/googleai/gemini.ts +++ b/js/plugins/google-genai/src/googleai/gemini.ts @@ -333,6 +333,7 @@ const KNOWN_GEMINI_MODELS = { 'gemini-2.5-pro': commonRef('gemini-2.5-pro'), 'gemini-2.5-flash': commonRef('gemini-2.5-flash'), 'gemini-2.5-flash-lite': commonRef('gemini-2.5-flash-lite'), + 'gemini-2.5-flash-image-preview': commonRef('gemini-2.5-flash-image-preview'), 'gemini-2.0-flash': commonRef('gemini-2.0-flash'), 'gemini-2.0-flash-preview-image-generation': commonRef( 'gemini-2.0-flash-preview-image-generation' diff --git a/samples/js-gemini/src/index.ts b/samples/js-gemini/src/index.ts index 09d21ca383..6117685e43 100644 --- a/samples/js-gemini/src/index.ts +++ b/samples/js-gemini/src/index.ts @@ -242,7 +242,7 @@ ai.defineFlow('gemini-image-editing', async (_) => { ai.defineFlow('imagen-image-generation', async (_) => { const { media } = await ai.generate({ model: googleAI.model('imagen-3.0-generate-002'), - prompt: `generate an image of a banana riding bicycle`, + prompt: `generate an image of a banana riding a bicycle`, }); return media;