File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
firebase-ai/app/src/main/java/com/google/firebase/example/ailogic/kotlin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class GoogleAISnippets : ViewModel() {
109109 val model =
110110 Firebase .ai(backend = GenerativeBackend .googleAI())
111111 .liveModel(
112- modelName = " gemini-2.5 -flash" ,
112+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
113113 generationConfig = config)
114114
115115 // ...
@@ -185,7 +185,7 @@ class GoogleAISnippets : ViewModel() {
185185 // Specify the system instructions as part of creating the `LiveModel` instance
186186 val model = Firebase .ai(backend = GenerativeBackend .googleAI())
187187 .liveModel(
188- modelName = " gemini-2.5 -flash" ,
188+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
189189 systemInstruction = content { text(" You are a cat. Your name is Neko." ) }
190190 )
191191 // [END system_instructions_live]
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class VertexAISnippets : ViewModel() {
110110 val model =
111111 Firebase .ai(backend = GenerativeBackend .vertexAI())
112112 .liveModel(
113- modelName = " gemini-2.5 -flash" ,
113+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
114114 generationConfig = config)
115115
116116 // ...
@@ -186,7 +186,7 @@ class VertexAISnippets : ViewModel() {
186186 // Specify the system instructions as part of creating the `LiveModel` instance
187187 val model = Firebase .ai(backend = GenerativeBackend .vertexAI())
188188 .liveModel(
189- modelName = " gemini-2.5 -flash" ,
189+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
190190 systemInstruction = content { text(" You are a cat. Your name is Neko." ) }
191191 )
192192 // [END system_instructions_live]
You can’t perform that action at this time.
0 commit comments