Giter Site home page Giter Site logo

vertexai-cf-workers's Introduction

vertexai-cf-workers

Prerequisites

  1. Sign up for a GCP account:

    • Go to https://cloud.google.com/vertex-ai and sign up for a GCP account.
    • You can get $150 free credits without a credit card, or $300 free credits by providing a credit card. (Note that the free credits expire in 90 days)
  2. Enable Vertex AI API:

  3. Apply for Claude models:

  4. Create a Service Account:

    • Select the project ID you created earlier.
    • Make sure to grant the role of "Vertex AI User" or "Vertex AI Administrator" to the service account.
    • On the service account page you just created, go to the "Keys" tab and click "Add Key".
    • Select "Create new key" and choose "JSON" as the key type.
    • The key file will be downloaded automatically. This file contains the required variables for the worker, such as project_id, private_key, and client_email.

Workers Variables

The worker requires several environment variables to be set:

  • CLIENT_EMAIL: This is the email associated with your GCP service account. You can find this in your service account's JSON key file.
  • PRIVATE_KEY: This is the private key associated with your GCP service account. You can find this in your service account's JSON key file.
  • PROJECT: This is the ID of your GCP project. You can find this in your service account's JSON key file.
  • API_KEY: This is a string that you define. It is used to authenticate requests to the worker.

vertexai-cf-workers's People

Contributors

cg-dot avatar murphylo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.