Node/call-vertex-remote-config-server/client/README.md
This is a basic web app that calls the callVertexWithRC function. The
function uses values stored in Remote Config server templates with
the Firebase Admin SDK to dynamically update Vertex AI Gemini API
parameters. Access is controlled using Firebase App Check.
Important: Vertex AI and Cloud Functions require a billing account. Review Vertex AI pricing and Firebase pricing before running this function. If you're new to Firebase and Google Cloud, check to see if you're eligible for a $300 credit and a Free Trial Cloud Billing account.
config.ts in this directory.npm install.npm run dev to run the client.To run this app against the callVertexWithRC function running in the Firebase
emulator, ensure that testModein main.ts is set to true. Before testing
with a deployed (i.e., not emulated) function, set testMode to false.
TIP: You can build the client and deploy to Firebase Hosting by running
npm run build from the client directory. Hosting deliverables are
generated and saved in client/dist and you can then deploy to
the emulator or Firebase Hosting from the parent directory. We recommend
deploying to the emulator first--you can use the following command to
deploy the function and web client simultaneously:
firebase serve --only functions,hosting
© Google, 2024. Licensed under an Apache-2 license.