VertexAILLM¶
VertexAI LLM implementation running the async API clients for Gemini.
-
Gemini API: https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini
To use the
VertexAILLMis necessary to have configured the Google Cloud authentication using one of these methods:- Setting
GOOGLE_CLOUD_CREDENTIALSenvironment variable - Using
gcloud auth application-default logincommand - Using
vertexai.initfunction from thegoogle-cloud-aiplatformlibrary
- Setting
Attributes¶
-
model: the model name to use for the LLM e.g. "gemini-1.0-pro". Supported models.
-
_aclient: the
GenerativeModelto use for the Vertex AI Gemini API. It is meant to be used internally. Set in theloadmethod.