diff --git a/firebase-ai/CHANGELOG.md b/firebase-ai/CHANGELOG.md index 70e0cf2cf53..e4efb011621 100644 --- a/firebase-ai/CHANGELOG.md +++ b/firebase-ai/CHANGELOG.md @@ -3,6 +3,7 @@ - [changed] Added `LiveAudioConversationConfig` to control different aspects of the conversation while using the `startAudioConversation` function. - [fixed] Fixed an issue causing streaming chat interactions to drop thought signatures. (#7562) +- [changed] Added `equals()` function to `GenerativeBackend`. # 17.6.0 diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt index 29af741a21e..5fe8683d300 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt @@ -40,6 +40,10 @@ internal constructor(internal val location: String, internal val backend: Genera return GenerativeBackend(location, GenerativeBackendEnum.VERTEX_AI) } } + + override fun equals(other: Any?): Boolean { + return other is GenerativeBackend && other.backend == this.backend + } } internal enum class GenerativeBackendEnum {