diff --git a/src/connectors/openai.py b/src/connectors/openai.py index e9414fe81..8a6f09f10 100644 --- a/src/connectors/openai.py +++ b/src/connectors/openai.py @@ -71,8 +71,8 @@ def __init__( "DISABLE_HEALTH_CHECKS", "false" ).lower() in ("true", "1", "yes") - disable_health_checks_config = self.config.get( - "session.dangerous_command_prevention_enabled", False + disable_health_checks_config = bool( + getattr(self.config, "disable_health_checks", False) ) # Enable health checks only when neither config nor env disable them