File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " zenguard"
3- version = " 0.1.1 "
3+ version = " 0.1.2 "
44description = " Plug-and-play production grade security for GenAI applications"
55authors = [" ZenGuard Team <hello@zenguard.ai>" ]
66license = " MIT"
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ def test_keywords(zenguard: ZenGuard):
4343 response = zenguard .detect (detectors = detectors , prompt = prompt )
4444 assert_successful_response_not_detected (response )
4545
46+ def test_secrets (zenguard : ZenGuard ):
47+ prompt = "Simple secrets test"
48+ detectors = [Detector .SECRETS ]
49+ response = zenguard .detect (detectors = detectors , prompt = prompt )
50+ assert_successful_response_not_detected (response )
51+
4652
4753if __name__ == "__main__" :
4854 api_key = os .environ .get ("ZEN_API_KEY" )
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class Detector(Enum):
2424 ALLOWED_TOPICS = "v1/detect/topics/allowed"
2525 BANNED_TOPICS = "v1/detect/topics/banned"
2626 KEYWORDS = "v1/detect/keywords"
27+ SECRETS = "v1/detect/secrets"
2728
2829
2930class ZenGuard :
You can’t perform that action at this time.
0 commit comments