Class VertexAI (0.4.0)

Base class for authenticating to Vertex, creates the preview namespace. Users use getGenerativeModel method to start using Google's generative models in GA.

Package

@google-cloud/vertexai

Constructors

(constructor)(init)

  constructor 
 ( 
 init 
 : 
  
 VertexInit 
 ); 
 

Constructs a new instance of the VertexAI class

Parameter
Name
Description
init
VertexInit

assign authentication related information, including project and location string, to instantiate a Vertex AI client.

Properties

googleAuth

  protected 
  
 googleAuth 
 : 
  
 GoogleAuth 
 ; 
 

preview

  preview 
 : 
  
 VertexAI_Preview 
 ; 
 

Methods

getGenerativeModel(modelParams)

  getGenerativeModel 
 ( 
 modelParams 
 : 
  
 ModelParams 
 ) 
 : 
  
 GenerativeModel 
 ; 
 
Parameter
Name
Description
modelParams
ModelParams

ModelParams Parameters to specify the generative model. {GenerativeModel} Instance of the GenerativeModel class.

Returns
Type
Description
GenerativeModel
Create a Mobile Website
View Site in Mobile | Classic
Share by: