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