@@ -151,7 +151,7 @@ export const streamFlowVertex = ai.defineFlow(
151151 } ,
152152 async ( prompt , { sendChunk } ) => {
153153 const { response, stream } = ai . generateStream ( {
154- model : vertexAI . model ( 'gemini-2.0 -flash-001 ' , { temperature : 0.77 } ) ,
154+ model : vertexAI . model ( 'gemini-2.5 -flash' , { temperature : 0.77 } ) ,
155155 prompt,
156156 } ) ;
157157
@@ -171,7 +171,7 @@ export const streamFlowGemini = ai.defineFlow(
171171 } ,
172172 async ( prompt , { sendChunk } ) => {
173173 const { response, stream } = ai . generateStream ( {
174- model : googleAI . model ( 'gemini-2.0 -flash-001 ' , { temperature : 0.77 } ) ,
174+ model : googleAI . model ( 'gemini-2.5 -flash' , { temperature : 0.77 } ) ,
175175 prompt,
176176 } ) ;
177177
@@ -207,7 +207,7 @@ export const streamJsonFlow = ai.defineFlow(
207207 } ,
208208 async ( count , { sendChunk } ) => {
209209 const { response, stream } = ai . generateStream ( {
210- model : googleAI . model ( 'gemini-2.0 -flash' ) ,
210+ model : googleAI . model ( 'gemini-2.5 -flash' ) ,
211211 output : {
212212 schema : GameCharactersSchema ,
213213 } ,
@@ -506,7 +506,7 @@ export const dynamicToolCaller = ai.defineFlow(
506506 ) ;
507507
508508 const { response, stream } = ai . generateStream ( {
509- model : googleAI . model ( 'gemini-2.0 -flash' ) ,
509+ model : googleAI . model ( 'gemini-2.5 -flash' ) ,
510510 config : {
511511 temperature : 1 ,
512512 } ,
@@ -901,7 +901,7 @@ ai.defineFlow(
901901 } ,
902902 async ( { url, prompt, model } ) => {
903903 const { text } = await ai . generate ( {
904- model : model || 'googleai/gemini-2.0 -flash' ,
904+ model : model || 'googleai/gemini-2.5 -flash' ,
905905 prompt : [ { text : prompt } , { media : { url, contentType : 'video/mp4' } } ] ,
906906 } ) ;
907907 return text ;
@@ -1112,7 +1112,7 @@ async function saveWaveFile(
11121112
11131113ai . defineFlow ( 'googleSearch' , async ( thing ) => {
11141114 const { text } = await ai . generate ( {
1115- model : googleAI . model ( 'gemini-2.0 -flash' ) ,
1115+ model : googleAI . model ( 'gemini-2.5 -flash' ) ,
11161116 prompt : `What is a banana?` ,
11171117 config : { tools : [ { googleSearch : { } } ] } ,
11181118 } ) ;
@@ -1122,7 +1122,7 @@ ai.defineFlow('googleSearch', async (thing) => {
11221122
11231123ai . defineFlow ( 'googleSearchRetrieval' , async ( thing ) => {
11241124 const { text } = await ai . generate ( {
1125- model : vertexAI . model ( 'gemini-2.0 -flash' ) ,
1125+ model : vertexAI . model ( 'gemini-2.5 -flash' ) ,
11261126 prompt : `What is a banana?` ,
11271127 config : { googleSearchRetrieval : { } } ,
11281128 } ) ;
@@ -1144,7 +1144,7 @@ ai.defineFlow('googleai-imagen', async (thing) => {
11441144
11451145ai . defineFlow ( 'meme-of-the-day' , async ( ) => {
11461146 const { text : script } = await ai . generate ( {
1147- model : googleAI . model ( 'gemini-2.0 -flash' ) ,
1147+ model : googleAI . model ( 'gemini-2.5 -flash' ) ,
11481148 prompt :
11491149 'Write a detailed script for a 8 second video. The video should be a meme of the day. ' +
11501150 'A Silly DIY FAIL situation like a: broken tools, or bad weather or crooked assembly, etc. Be creative. The FAIL should be very obvious. ' +
@@ -1266,7 +1266,7 @@ ai.defineResource(
12661266
12671267ai . defineFlow ( 'resource' , async ( ) => {
12681268 return await ai . generate ( {
1269- model : googleAI . model ( 'gemini-2.0 -flash' ) ,
1269+ model : googleAI . model ( 'gemini-2.5 -flash' ) ,
12701270 prompt : [
12711271 { text : 'analyze this: ' } ,
12721272 { resource : { uri : 'my://resource/value' } } ,
0 commit comments