Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 2.24 KB

File metadata and controls

50 lines (39 loc) · 2.24 KB

Test client for call-vertex-remote-config-server

Introduction

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 change Vertex AI Gemini API parameters on the fly. 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.

Get started

  1. Create a Firebase project and register a web app.
  2. Create a ReCAPTCHA Enterprise key in the same project.
  3. Enable App Check in the Firebase console with the ReCAPTCHA Enterprise site key you created.
  4. Copy your Firebase project config and your ReCAPTCHA Enterprise site key into the appropriate places in config.ts in this directory.
  5. In this directory, run npm install.
  6. Set up the function as described in ../README.md.
  7. In this directory, run npm run dev to run the client.

We recommend running and testing functions locally before deploying to Google Cloud. To run this app against the callVertexWithRC function running in an emulator, set testMode to true.

Support

License

© Google, 2024. Licensed under an Apache-2 license.