mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
Vertex AI for Firebase Sample App
This sample demonstrates how to make calls to the Vertex AI Gemini API directly from your app, rather than server-side, using the Vertex AI for Firebase SDK.
Getting Started
Clone and open the sample project
- Clone this repo.
- Change into the
FirebaseVertexAI/Sampledirectory. - Open
VertexAISample.xcodeprojusing Xcode.
git clone https://github.com/firebase/firebase-ios-sdk.git
cd firebase-ios-sdk
cd FirebaseVertexAI/Sample
open VertexAISample.xcodeproj
Connect the sample to your Firebase project
To have a functional application, you will need to connect the Vertex AI for Firebase sample app to your Firebase project (or create a new project):
- Follow the instructions in Set up a Firebase project and connect your app to Firebase.
- Add an iOS+ app to your project. Make sure the
Bundle Identifieryou set matches the one in the sample.- The default bundle ID is
com.google.firebase.VertexAISample
- The default bundle ID is
- Download the
GoogleService-Info.plistfor the app when prompted and save it to theFirebaseVertexAI/Sampledirectory, overwriting the placeholder file with the same name.
You should now be able to build and run the sample!
Documentation
To learn more about the Vertex AI for Firebase SDK, check out the documentation.
Support
- GitHub Issue
- File an issue in the
firebase-ios-sdkrepo, choosing the Vertex AI product.
- File an issue in the
- Firebase Support