Skip to content

Commit 5da4875

Browse files
committed
adjusting test and documentation
1 parent 5a4062d commit 5da4875

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/docs/guide/8-edge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ gl = ExperimentalApi(endpoint="http://localhost:30101")
5959
# Build a configuration with detectors and inference presets
6060
config = EdgeEndpointConfig()
6161
config.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
6565
print("Applying configuration...")

test/unit/test_edge_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
321327
def test_edge_get_config_parses_response():
322328
"""gl.edge.get_config() parses the HTTP response into an EdgeEndpointConfig."""
323329
payload = {

0 commit comments

Comments
 (0)