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() {
109
109
val model =
110
110
Firebase .ai(backend = GenerativeBackend .googleAI())
111
111
.liveModel(
112
- modelName = " gemini-2.5 -flash" ,
112
+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
113
113
generationConfig = config)
114
114
115
115
// ...
@@ -185,7 +185,7 @@ class GoogleAISnippets : ViewModel() {
185
185
// Specify the system instructions as part of creating the `LiveModel` instance
186
186
val model = Firebase .ai(backend = GenerativeBackend .googleAI())
187
187
.liveModel(
188
- modelName = " gemini-2.5 -flash" ,
188
+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
189
189
systemInstruction = content { text(" You are a cat. Your name is Neko." ) }
190
190
)
191
191
// [END system_instructions_live]
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class VertexAISnippets : ViewModel() {
110
110
val model =
111
111
Firebase .ai(backend = GenerativeBackend .vertexAI())
112
112
.liveModel(
113
- modelName = " gemini-2.5 -flash" ,
113
+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
114
114
generationConfig = config)
115
115
116
116
// ...
@@ -186,7 +186,7 @@ class VertexAISnippets : ViewModel() {
186
186
// Specify the system instructions as part of creating the `LiveModel` instance
187
187
val model = Firebase .ai(backend = GenerativeBackend .vertexAI())
188
188
.liveModel(
189
- modelName = " gemini-2.5 -flash" ,
189
+ modelName = " gemini-2.0 -flash-live-preview-04-09 " ,
190
190
systemInstruction = content { text(" You are a cat. Your name is Neko." ) }
191
191
)
192
192
// [END system_instructions_live]
You can’t perform that action at this time.
0 commit comments