diff --git a/src/groundlight/client.py b/src/groundlight/client.py index 7c76b560..ff5a4f5a 100644 --- a/src/groundlight/client.py +++ b/src/groundlight/client.py @@ -207,6 +207,7 @@ def _verify_connectivity(self) -> None: f"Error connecting to Groundlight using API token '{self.api_token_prefix}...'" f" at endpoint '{self.endpoint}'. Endpoint might be invalid or unreachable? " "Check https://status.groundlight.ai/ for service status." + f"Original Error was: {str(e)}" ) raise GroundlightClientError(msg) from e @@ -361,6 +362,10 @@ def create_detector( # noqa: PLR0913 """ Create a new Detector with a given name and query. + Counting and Multiclass detectors are in Beta, and can be created through the + ExperimentalApi via the :meth:`ExperimentalApi.create_counting_detector` and + :meth:`ExperimentalApi.create_multiclass_detector` methods. + **Example usage**:: gl = Groundlight() @@ -383,8 +388,8 @@ def create_detector( # noqa: PLR0913 # Create a detector in a specific group detector = gl.create_detector( - name="vehicle-counter", - query="How many vehicles are in the parking lot?", + name="vehicle-monitor", + query="Are there vehicles are in the parking lot?", group_name="parking-monitoring", patience_time=60.0 )