Enter to send·Shift+Enter new line
VertexAI( self, *, model_name: str | None = None, kwargs: Any = {
_VertexAICommon
BaseLLM
The name of the Vertex AI text completion model.
The name of a tuned model.
If tuned_model_name is passed model_name will be used to determine the model family
tuned_model_name
model_name
Output response MIME type of the generated candidate text.
Supported MIME type:
'text/plain'
'application/json'
'text/x.enum'
The model also needs to be prompted to output the appropriate response type, otherwise the behavior is undefined.
This is a preview feature.
Enforce a schema to the output.
The format of the dictionary should follow Open API schema.
Get the namespace of the langchain object.
Validate that the python package exists in environment.
Get the number of tokens present in the text.
Useful for checking if an input will fit in a model's context window.
Google Vertex AI text completion large language models (legacy LLM).
Added in langchain-google-genai 4.0.0.
langchain-google-genai
ChatGoogleGenerativeAI now supports both the Gemini Developer API and Vertex AI Platform as backend options.
ChatGoogleGenerativeAI