gemini-1.5-pro
, gemini-1.5-flash
, etc.
This will help you get started with VertexAI completion models (LLMs) using LangChain. For detailed documentation on VertexAI
features and configuration options, please refer to the API reference.
Class | Package | Local | Serializable | PY support | Package downloads | Package latest |
---|---|---|---|---|---|---|
VertexAI | @langchain/google-vertexai | ❌ | ✅ | ✅ |
@langchain/google-vertexai
integration package.
gcloud auth application-default login
)
permitted to that project.GOOGLE_APPLICATION_CREDENTIALS
environment
variable to the path of this file.
orGOOGLE_API_KEY
environment variable to the API key for the project.@langchain/google-vertexai-web
package.
Then, you’ll need to add your service account credentials directly as a GOOGLE_VERTEX_AI_WEB_CREDENTIALS
environment variable:
@langchain/google-vertexai
package: