Skip to content

Commit e0cfdd1

Browse files
committed
Fix Firebase AI StackOverflow
1 parent f2257e4 commit e0cfdd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/FirebaseAI.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ internal constructor(
220220
}
221221

222222
/** The [FirebaseAI] instance for the provided [FirebaseApp] using the Google AI Backend. */
223-
@JvmStatic public fun getInstance(app: FirebaseApp): FirebaseAI = getInstance(app)
223+
@JvmStatic public fun getInstance(
224+
app: FirebaseApp
225+
): FirebaseAI = getInstance(app, GenerativeBackend.googleAI())
224226

225227
private const val GEMINI_MODEL_NAME_PREFIX = "gemini-"
226228

0 commit comments

Comments
 (0)