langchain_community.embeddings.nemo.is_endpoint_liveΒΆ

langchain_community.embeddings.nemo.is_endpoint_live(url: str, headers: Optional[dict], 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 (Optional[dict]) –

  • 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.