init_vertexai#
- langchain_community.utilities.vertexai.init_vertexai(project: str | None = None, location: str | None = None, credentials: Credentials | None = None) None [source]#
Init Vertex AI.
- Parameters:
project (str | None) – The default GCP project to use when making Vertex API calls.
location (str | None) – The default location to use when making API calls.
credentials (Credentials | None) – The default custom credentials to use when making API calls. If not provided credentials will be ascertained from the environment.
- Raises:
ImportError – If importing vertexai SDK did not succeed.
- Return type:
None