File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ gl = ExperimentalApi(endpoint="http://localhost:30101")
5959# Build a configuration with detectors and inference presets
6060config = EdgeEndpointConfig()
6161config.add_detector(" det_YOUR_DETECTOR_ID_HERE_01" , NO_CLOUD )
62- config.add_detector(" det_YOUR_DETECTOR_ID_HERE_02" , DEFAULT )
62+ config.add_detector(" det_YOUR_DETECTOR_ID_HERE_02" , EDGE_ANSWERS_WITH_ESCALATION )
6363
6464# Apply the configuration and wait for detectors to be ready
6565print (" Applying configuration..." )
Original file line number Diff line number Diff line change @@ -318,6 +318,12 @@ def test_inference_config_validation_errors():
318318 )
319319
320320
321+ def test_confident_audit_rate_allows_zero ():
322+ """Zero is a valid confident_audit_rate (disables auditing)."""
323+ gc = GlobalConfig (confident_audit_rate = 0.0 )
324+ assert gc .confident_audit_rate == 0.0
325+
326+
321327def test_edge_get_config_parses_response ():
322328 """gl.edge.get_config() parses the HTTP response into an EdgeEndpointConfig."""
323329 payload = {
You can’t perform that action at this time.
0 commit comments