Andrew Heard 61c10bcc56 [Vertex AI] Update samples/docs to use `gemini-1.5-flash-preview-0514` (#12979) il y a 1 an
..
ChatSample 61c10bcc56 [Vertex AI] Update samples/docs to use `gemini-1.5-flash-preview-0514` (#12979) il y a 1 an
FunctionCallingSample 61c10bcc56 [Vertex AI] Update samples/docs to use `gemini-1.5-flash-preview-0514` (#12979) il y a 1 an
GenerativeAIMultimodalSample 61c10bcc56 [Vertex AI] Update samples/docs to use `gemini-1.5-flash-preview-0514` (#12979) il y a 1 an
GenerativeAITextSample 61c10bcc56 [Vertex AI] Update samples/docs to use `gemini-1.5-flash-preview-0514` (#12979) il y a 1 an
GenerativeAIUIComponents 5a1763bf23 [Vertex AI] Align text and add close keyboard function in Sample Project (#12887) il y a 1 an
VertexAISample 477d6eaa39 [Vertex AI] Add AppCheck, Auth and Storage frameworks to sample (#12928) il y a 1 an
VertexAISample.xcodeproj 477d6eaa39 [Vertex AI] Add AppCheck, Auth and Storage frameworks to sample (#12928) il y a 1 an
GoogleService-Info.plist 6ffe4b0c7e Add placeholder `GoogleService-Info.plist` to Vertex AI sample (#12724) il y a 1 an
README.md 7182d18e28 [Vertex AI] Update sample README for `main` (#12956) il y a 1 an

README.md

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

  1. Clone this repo.
  2. Change into the FirebaseVertexAI/Sample directory.
  3. Open VertexAISample.xcodeproj using 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):

  1. Follow the instructions in Set up a Firebase project and connect your app to Firebase.
  2. 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
  3. Download the GoogleService-Info.plist for the app when prompted and save it to the FirebaseVertexAI/Sample directory, 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