Skip to content

Commit 77f2032

Browse files
committed
fix bidi modelName in Kotlin
1 parent 60b6980 commit 77f2032

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

firebase-ai/app/src/main/java/com/google/firebase/example/ailogic/kotlin/GoogleAISnippets.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

firebase-ai/app/src/main/java/com/google/firebase/example/ailogic/kotlin/VertexAISnippets.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)