Andrew Heard bf17fcc8bb [Vertex AI] Switch to `gemini-1.5-pro-preview-0409` in sample app (#12946) 1 éve
..
ChatSample bf17fcc8bb [Vertex AI] Switch to `gemini-1.5-pro-preview-0409` in sample app (#12946) 1 éve
FunctionCallingSample bf17fcc8bb [Vertex AI] Switch to `gemini-1.5-pro-preview-0409` in sample app (#12946) 1 éve
GenerativeAIMultimodalSample bf17fcc8bb [Vertex AI] Switch to `gemini-1.5-pro-preview-0409` in sample app (#12946) 1 éve
GenerativeAITextSample bf17fcc8bb [Vertex AI] Switch to `gemini-1.5-pro-preview-0409` in sample app (#12946) 1 éve
GenerativeAIUIComponents 7faa8f72e2 [vertex-ai] Fix for SwiftFormat 0.53.5 (#12683) 1 éve
VertexAISample 0f5cd0fc5e [Vertex AI] Add AppCheck, Auth and Storage frameworks to sample (#12928) 1 éve
VertexAISample.xcodeproj 0f5cd0fc5e [Vertex AI] Add AppCheck, Auth and Storage frameworks to sample (#12928) 1 éve
GoogleService-Info.plist 279e438a95 Add placeholder `GoogleService-Info.plist` to Vertex AI sample (#12724) 1 éve
README.md 41c08f756e [Vertex AI] Update sample instructions for public preview (#12944) 1 éve

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 and checkout the release-10.26 branch.
  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
    $ git checkout release-10.26
    $ 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 using the Firebase Console.
  • For an in-depth explanation, see Add Firebase to your Apple project. Below is a summary of the main steps:
    1. Visit the Firebase Console.
    2. Add an iOS+ app to the project. Make sure the Bundle Identifier you set matches that of the one in the sample.
      • The default bundle ID is com.google.firebase.VertexAISample
    3. Download the GoogleService-Info.plist when prompted and save it to the FirebaseVertexAI/Sample directory, overwriting the placeholder file with the same name.
  • Now you should be able to build and run the sample!

Documentation

To learn more about the Vertex AI for Firebase SDK, check out the documentation.

Support