Socket
Book a DemoInstallSign in
Socket

@langchain/google-vertexai-web

Package Overview
Dependencies
Maintainers
11
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/google-vertexai-web

LangChain.js support for Google Vertex AI Web

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
5.8K
2.71%
Maintainers
11
Weekly downloads
 
Created
Source

LangChain google-vertexai-web

This package contains resources to access Google AI/ML models and other Google services via Vertex AI. Authorization to these services use either an API Key or service account credentials that are included in an environment variable.

If you are running this on the Google Cloud Platform, or in a way where service account credentials can be stored on a file system, consider using the @langchain/google-vertexai package instead. You do not need to use both packages. See the section on Authorization below.

Installation

$ pnpm install @langchain/google-vertexai-web

Authorization

Authorization is done through a Google Cloud Service Account.

To handle service accounts, this package uses the google-auth-library package, and you may wish to consult the documentation for that library about how it does so. But in short, classes in this package will use credentials from the first of the following that apply:

  • An API Key that is passed to the constructor using the apiKey attribute
  • Credentials that are passed to the constructor using the authInfo attribute
  • An API Key that is set in the environment variable API_KEY
  • The Service Account credentials that are saved directly into the GOOGLE_WEB_CREDENTIALS
  • The Service Account credentials that are saved directly into the GOOGLE_VERTEX_AI_WEB_CREDENTIALS (deprecated)

FAQs

Package last updated on 17 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts