is_endpoint_live#

langchain_community.embeddings.nemo.is_endpoint_live(url: str, headers: dict | None, payload: Any) bool[source]#

Check if an endpoint is live by sending a GET request to the specified URL.

Parameters:
  • url (str) – The URL of the endpoint to check.

  • headers (dict | None) –

  • payload (Any) –

Returns:

True if the endpoint is live (status code 200), False otherwise.

Return type:

bool

Raises:

Exception – If the endpoint returns a non-successful status code or if there is an error querying the endpoint.