langchain_community.utilities.vertexai
.init_vertexaiΒΆ
- langchain_community.utilities.vertexai.init_vertexai(project: Optional[str] = None, location: Optional[str] = None, credentials: Optional[Credentials] = None) None [source]ΒΆ
Init Vertex AI.
- Parameters
project (Optional[str]) β The default GCP project to use when making Vertex API calls.
location (Optional[str]) β The default location to use when making API calls.
credentials (Optional[Credentials]) β 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