Classe VertexAI_Preview (0.3.1)

Implementazione interna della classe Vertex AI per l'autenticazione.

Pacchetto

@google-cloud/vertexai

Costruttori

(constructor)(progetto, località, apiEndpoint, googleAuthOptions)

constructor(project: string, location: string, apiEndpoint?: string | undefined, googleAuthOptions?: GoogleAuthOptions<import("google-auth-library/build/src/auth/googleauth").JSONClient> | undefined);

Crea una nuova istanza della classe VertexAI_Preview

Parametri
Nome Description
project string
location string
apiEndpoint string | undefined
googleAuthOptions GoogleAuthOptions<import("google-auth-library/build/src/auth/googleauth").JSONClient> | undefined

Proprietà

apiEndpoint

readonly apiEndpoint?: string | undefined;

googleAuth

protected googleAuth: GoogleAuth;

googleAuthOptions

readonly googleAuthOptions?: GoogleAuthOptions<import("google-auth-library/build/src/auth/googleauth").JSONClient> | undefined;

località

readonly location: string;

project

readonly project: string;

Metodi

getGenerativeModel(modelParams)

getGenerativeModel(modelParams: ModelParams): GenerativeModel;
Parametro
Nome Description
modelParams ModelParams

ModelParams Parametri per specificare il modello generativo. Istanza {GenerativeModel} della classe GenerativeModel. GenerativeModel

Restituisce
Tipo Description
GenerativeModel

validateGoogleAuthOptions(project, googleAuthOptions)

validateGoogleAuthOptions(project: string, googleAuthOptions?: GoogleAuthOptions): GoogleAuthOptions;
Parametri
Nome Description
project string
googleAuthOptions GoogleAuthOptions
Restituisce
Tipo Description
GoogleAuthOptions