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
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, requestOptions)
getGenerativeModel
(
modelParams
:
ModelParams
,
requestOptions
?:
RequestOptions
)
:
GenerativeModel
;
Parameters
Name
Description
modelParams
requestOptions