|
|
před 1 rokem | |
|---|---|---|
| .. | ||
| ChatSample | 7057e58779 update vertex ai sample to use gemini 2.0 flash (#14432) | před 1 rokem |
| FunctionCallingSample | 7057e58779 update vertex ai sample to use gemini 2.0 flash (#14432) | před 1 rokem |
| GenerativeAIMultimodalSample | 7057e58779 update vertex ai sample to use gemini 2.0 flash (#14432) | před 1 rokem |
| GenerativeAITextSample | 7057e58779 update vertex ai sample to use gemini 2.0 flash (#14432) | před 1 rokem |
| GenerativeAIUIComponents | 5a1763bf23 [Vertex AI] Align text and add close keyboard function in Sample Project (#12887) | před 1 rokem |
| VertexAISample | 477d6eaa39 [Vertex AI] Add AppCheck, Auth and Storage frameworks to sample (#12928) | před 1 rokem |
| VertexAISample.xcodeproj | 74e3d9ca17 [Vertex AI] Remove `-Preview` suffix in SPM library name (#13744) | před 1 rokem |
| GoogleService-Info.plist | 6ffe4b0c7e Add placeholder `GoogleService-Info.plist` to Vertex AI sample (#12724) | před 1 rokem |
| README.md | 7182d18e28 [Vertex AI] Update sample README for `main` (#12956) | před 1 rokem |
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.
FirebaseVertexAI/Sample directory.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
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):
Bundle Identifier you set
matches the one in the sample.
com.google.firebase.VertexAISampleGoogleService-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!
To learn more about the Vertex AI for Firebase SDK, check out the documentation.
firebase-ios-sdk repo, choosing the Vertex AI product.