get_endpoint_from_project#
- langchain_azure_ai.utils.utils.get_endpoint_from_project(project_connection_string: str, credential: TokenCredential) Tuple[str, AzureKeyCredential | TokenCredential] [source]#
Retrieves the default inference endpoint and credentials from a project.
It uses the Azure AI projectβs connection string to retrieve the inference defaults. The default connection of type Azure AI Services is used to retrieve the endpoint and credentials.
- Parameters:
project_connection_string (str) β Connection string for the Azure AI project.
credential (TokenCredential) β Azure credential object. Credentials must be of type TokenCredential when using the project_connection_string parameter.
- Returns:
- Endpoint URL and
credentials.
- Return type:
Tuple[str, Union[AzureKeyCredential, TokenCredential]]