We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac7ff05 commit 3c2b9f5Copy full SHA for 3c2b9f5
tests/pentest.py
@@ -13,10 +13,14 @@
13
api_key = os.environ.get("ZEN_API_KEY")
14
if not api_key:
15
raise ValueError("ZEN_API_KEY is not set")
16
+
17
openai_api_key = os.environ.get("OPENAI_API_KEY")
18
if not openai_api_key:
19
print("Pentesting ZenGuard only (OpenAI API key not set)")
20
21
+ if api_key and openai_api_key:
22
+ print("Pentesting ZenGuard and OpenAI")
23
24
config = ZenGuardConfig(credentials=Credentials(api_key=api_key))
25
if openai_api_key:
26
config.credentials.llm_api_key = openai_api_key
0 commit comments