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/vertexaiConstructors
(constructor)(init)
constructor
(
init
:
VertexInit
);
Constructs a new instance of the VertexAI
class
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
;
modelParams
ModelParams
ModelParams Parameters to specify the generative model. {GenerativeModel} Instance of the GenerativeModel class.
GenerativeModel