Skip to content

Conversation

@thatfiredev
Copy link
Contributor

No description provided.

@riggaroo riggaroo merged commit 88d33e0 into android:main May 21, 2025
3 checks passed
calren pushed a commit to android/ai-samples that referenced this pull request May 22, 2025
I've replaced the `firebase-vertexai` SDK with the new `firebase-ai` (Firebase AI Logic SDK) across multiple samples.

Key changes include:
- Updated `gradle/libs.versions.toml` to use the new `firebase-ai` dependency and updated the Firebase BOM.
- Modified `build.gradle.kts` files for the affected samples (`gemini-chatbot`, `gemini-multimodal`, `gemini-video-summarization`, `imagen`, `magic-selfie`) to implement `libs.firebase.ai`.
- Updated Kotlin source files (primarily ViewModels) in these samples to:
    - Change import statements from `com.google.firebase.vertexai.*` to `com.google.firebase.ai.*`.
    - Update SDK initialization from `Firebase.vertexAI...` to `Firebase.ai(backend = GenerativeBackend.vertexAI())...`.
    - Ensured correct imports for `Firebase`, `Firebase.ai`, and `GenerativeBackend`.

This change aligns the samples with the latest Firebase AI Logic SDK, as demonstrated in the reference PR android/androidify#9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants