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.
release-10.26 branch.FirebaseVertexAI/Sample directory.Open VertexAISample.xcodeproj using Xcode.
$ git clone https://github.com/firebase/firebase-ios-sdk.git
$ cd firebase-ios-sdk
$ git checkout release-10.26
$ cd FirebaseVertexAI/Sample
$ open VertexAISample.xcodeproj
Bundle Identifier you set
matches that of the one in the sample.
com.google.firebase.VertexAISampleGoogleService-Info.plist when prompted and save it to the
FirebaseVertexAI/Sample directory, overwriting the placeholder file with
the same name.To learn more about the Vertex AI for Firebase SDK, check out the documentation.
firebase-ios-sdk repo, choosing the Vertex AI product.