This sample demonstrates how to make calls to the Gemini API via Firebase directly from your app, rather than server-side, using the Vertex AI for Firebase SDK.
- Clone this repo.
- Change into the
firebaseai
directory. - Open
FirebaseAISample.xcodeproj
using Xcode.
git clone https://github.com/firebase/quickstart-ios.git
cd quickstart-ios/firebaseai
open FirebaseAISample.xcodeproj
To have a functional application, you will need to connect the Firebase AI 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 Identifier
you 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.plist
for the app when prompted and save it to thefirebaseai
directory.
You should now be able to build and run the sample!
To learn more about the Firebase AI SDK, check out the documentation.
- GitHub Issue
- File an issue in the
firebase-ios-sdk
repo, choosing the Firebase AI product.
- File an issue in the
- Firebase Support