Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions firebase-ai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased

* [fixed] Fixed `FirebaseAI.getInstance` StackOverflowException (#6971)
* [fixed] Fixed an issue that was causing the SDK to send empty `FunctionDeclaration` descriptions to the API.

# 16.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ internal constructor(
}

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

private const val GEMINI_MODEL_NAME_PREFIX = "gemini-"

Expand Down
Loading