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.
2 parents a05bd0f + 57affd8 commit 1fea9efCopy full SHA for 1fea9ef
zenguard/zenguard.py
@@ -58,7 +58,10 @@ def __init__(
58
self,
59
config: ZenGuardConfig,
60
):
61
- self._api_key = config.credentials.api_key
+ api_key = config.credentials.api_key
62
+ if type(api_key) != str or api_key == '':
63
+ raise ValueError("The API key must be a string type and not empty.")
64
+ self._api_key = api_key
65
self._backend = "https://api.zenguard.ai/"
66
67
self._llm_client = None
0 commit comments