Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions guardrails/guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ def _configure_telemtry(
self._hub_telemetry = HubTelemetry()

def _fill_validator_map(self):
# dont init validators if were going to call the server
if self._api_client is not None:
return
for ref in self.validators:
entry: List[Validator] = self._validator_map.get(ref.on, []) # type: ignore
# Check if the validator from the reference
Expand Down