enkryptai-sdk 1.0.6__py3-none-any.whl → 1.0.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- enkryptai_sdk/guardrails.py +1 -1
- enkryptai_sdk/models.py +1 -1
- enkryptai_sdk/red_team.py +1 -1
- {enkryptai_sdk-1.0.6.dist-info → enkryptai_sdk-1.0.7.dist-info}/METADATA +1 -1
- {enkryptai_sdk-1.0.6.dist-info → enkryptai_sdk-1.0.7.dist-info}/RECORD +8 -8
- {enkryptai_sdk-1.0.6.dist-info → enkryptai_sdk-1.0.7.dist-info}/WHEEL +0 -0
- {enkryptai_sdk-1.0.6.dist-info → enkryptai_sdk-1.0.7.dist-info}/licenses/LICENSE +0 -0
- {enkryptai_sdk-1.0.6.dist-info → enkryptai_sdk-1.0.7.dist-info}/top_level.txt +0 -0
enkryptai_sdk/guardrails.py
CHANGED
|
@@ -376,7 +376,7 @@ class GuardrailsClient(BaseClient):
|
|
|
376
376
|
|
|
377
377
|
try:
|
|
378
378
|
response = self._request("GET", "/guardrails/list-policies")
|
|
379
|
-
if response.get("error"):
|
|
379
|
+
if isinstance(response, dict) and response.get("error"):
|
|
380
380
|
raise GuardrailsClientError(response["error"])
|
|
381
381
|
return GuardrailsListPoliciesResponse.from_dict(response)
|
|
382
382
|
except Exception as e:
|
enkryptai_sdk/models.py
CHANGED
|
@@ -124,7 +124,7 @@ class ModelClient(BaseClient):
|
|
|
124
124
|
"""
|
|
125
125
|
try:
|
|
126
126
|
response = self._request("GET", "/models/list-models")
|
|
127
|
-
if response.get("error"):
|
|
127
|
+
if isinstance(response, dict) and response.get("error"):
|
|
128
128
|
raise ModelClientError(response["error"])
|
|
129
129
|
return ModelCollection.from_dict(response)
|
|
130
130
|
except Exception as e:
|
enkryptai_sdk/red_team.py
CHANGED
|
@@ -395,6 +395,6 @@ class RedTeamClient(BaseClient):
|
|
|
395
395
|
url += f"?status={status}"
|
|
396
396
|
|
|
397
397
|
response = self._request("GET", url)
|
|
398
|
-
if response.get("error"):
|
|
398
|
+
if isinstance(response, dict) and response.get("error"):
|
|
399
399
|
raise RedTeamClientError(response["error"])
|
|
400
400
|
return RedTeamTaskList.from_dict(response)
|
|
@@ -5,10 +5,10 @@ enkryptai_sdk/config.py,sha256=IpB8_aO4zXdvv061v24oh83oyJ5Tp1QBQTzeuW4h9QY,8828
|
|
|
5
5
|
enkryptai_sdk/datasets.py,sha256=2rAU1qeqBZz6rXxG4n9XM_8_ZQYNmcNFW-jgyw7nLPI,5364
|
|
6
6
|
enkryptai_sdk/deployments.py,sha256=qXoUQtLYRSqZsAAqPgxJAad1a3mgMAbPx09NiOyAdsw,4155
|
|
7
7
|
enkryptai_sdk/evals.py,sha256=BywyEgIT7xdJ58svO_sDNOMVowdB0RTGoAZPEbCnDVo,2595
|
|
8
|
-
enkryptai_sdk/guardrails.py,sha256=
|
|
8
|
+
enkryptai_sdk/guardrails.py,sha256=F8sKaTDj9D1C0h3DTZXsmZpyCw0EuSFmVaCjxHemvqI,13673
|
|
9
9
|
enkryptai_sdk/guardrails_old.py,sha256=SgzPZkTzbAPD9XfmYNG6M1-TrzbhDHpAkI3FjnVWS_s,6434
|
|
10
|
-
enkryptai_sdk/models.py,sha256=
|
|
11
|
-
enkryptai_sdk/red_team.py,sha256=
|
|
10
|
+
enkryptai_sdk/models.py,sha256=ITxZT6uF_ihSnNvbJIzxAq74t9ZYEN8HM0z2z3Onwhg,10392
|
|
11
|
+
enkryptai_sdk/red_team.py,sha256=IGL82OhO4nu9lAw9d6sRgfX9PyjkAQjP-9QTrusw_n8,14510
|
|
12
12
|
enkryptai_sdk/response.py,sha256=43JRubzgGCpoVxYNzBZY0AlUgLbfcXD_AwD7wU3qY9o,4086
|
|
13
13
|
enkryptai_sdk/dto/__init__.py,sha256=vG5PmG-L99v89AGiKF1QAF63YILk-e9w0dd665M3U60,2414
|
|
14
14
|
enkryptai_sdk/dto/ai_proxy.py,sha256=clwMN4xdH8Zr55dnhilHbs-qaHRlCOrLPrij0Zd1Av0,11283
|
|
@@ -18,8 +18,8 @@ enkryptai_sdk/dto/deployments.py,sha256=Aw4b8tDA3FYIomqDvCjblCXTagL4bT8Fx91X0SFX
|
|
|
18
18
|
enkryptai_sdk/dto/guardrails.py,sha256=uolGPPF4v0l76MI5G0ofTtc9-r1l0_sqQqQkLEhAsf0,46305
|
|
19
19
|
enkryptai_sdk/dto/models.py,sha256=6BYF4XwzUwY8O_YgE9S7LPAvsQaRYtUV6ylkTYP7w10,13438
|
|
20
20
|
enkryptai_sdk/dto/red_team.py,sha256=4VGxDGCsZsHi6yJsUZ64IXj6u84xZPcSQuME1PFSnSc,15243
|
|
21
|
-
enkryptai_sdk-1.0.
|
|
22
|
-
enkryptai_sdk-1.0.
|
|
23
|
-
enkryptai_sdk-1.0.
|
|
24
|
-
enkryptai_sdk-1.0.
|
|
25
|
-
enkryptai_sdk-1.0.
|
|
21
|
+
enkryptai_sdk-1.0.7.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
+
enkryptai_sdk-1.0.7.dist-info/METADATA,sha256=3NQrHgLSY_J0YpGnWHpgdOATcTaAz9Uxip9atFv1c-E,45959
|
|
23
|
+
enkryptai_sdk-1.0.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
24
|
+
enkryptai_sdk-1.0.7.dist-info/top_level.txt,sha256=s2X9UJJwvJamNmr6ZXWyyQe60sXtQGWFuaBYfhgHI_4,14
|
|
25
|
+
enkryptai_sdk-1.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|