Optional
fields: GoogleVertexAITextInputProtected
connectionProtected
streamedFormats the input instance for the Google Vertex AI model based on the model type (text or code).
Prompt to be formatted as an instance.
A GoogleVertexAILLMInstance object representing the formatted instance.
Formats the input instance as a code instance for the Google Vertex AI model.
Prompt to be formatted as a code instance.
A GoogleVertexAILLMInstance object representing the formatted code instance.
Formats the input instance as a text instance for the Google Vertex AI model.
Prompt to be formatted as a text instance.
A GoogleVertexAILLMInstance object representing the formatted text instance.
Generated using TypeDoc
Enables calls to the Google Cloud's Vertex AI API to access Large Language Models.
This entrypoint and class are intended to be used in web environments like Edge functions where you do not have access to the file system. It supports passing service account credentials directly as a "GOOGLE_VERTEX_AI_WEB_CREDENTIALS" environment variable or directly as "authOptions.credentials".
Example