enkryptai-sdk 1.0.11__py3-none-any.whl → 1.0.13__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.
@@ -166,6 +166,7 @@ class ModelConfigDetails(BaseDTO):
166
166
  auth_data: AuthData = field(default_factory=AuthData)
167
167
  input_modalities: List[InputModality] = field(default_factory=list)
168
168
  output_modalities: List[OutputModality] = field(default_factory=list)
169
+ custom_curl_command: Optional[str] = None
169
170
  custom_headers: List[CustomHeader] = field(default_factory=list)
170
171
  custom_payload: Dict[str, Any] = field(default_factory=dict)
171
172
  custom_response_content_type: Optional[str] = ""
@@ -359,6 +359,7 @@ class TargetModelConfiguration(BaseDTO):
359
359
  model_api_key: Optional[str] = None
360
360
  input_modalities: List[InputModality] = field(default_factory=list)
361
361
  output_modalities: List[OutputModality] = field(default_factory=list)
362
+ custom_curl_command: Optional[str] = None
362
363
  custom_headers: List[CustomHeader] = field(default_factory=list)
363
364
  custom_payload: Dict[str, Any] = field(default_factory=dict)
364
365
  custom_response_content_type: Optional[str] = ""
enkryptai_sdk/models.py CHANGED
@@ -77,6 +77,7 @@ class ModelClient(BaseClient):
77
77
  "tools": config.model_config.tools,
78
78
  "input_modalities": [m.value if hasattr(m, 'value') else m for m in config.model_config.input_modalities],
79
79
  "output_modalities": [m.value if hasattr(m, 'value') else m for m in config.model_config.output_modalities],
80
+ "custom_curl_command": config.model_config.custom_curl_command,
80
81
  "custom_headers": custom_headers,
81
82
  "custom_payload": config.model_config.custom_payload,
82
83
  "custom_response_content_type": config.model_config.custom_response_content_type,
@@ -225,6 +226,7 @@ class ModelClient(BaseClient):
225
226
  "tools": config.model_config.tools,
226
227
  "input_modalities": [m.value if hasattr(m, 'value') else m for m in config.model_config.input_modalities],
227
228
  "output_modalities": [m.value if hasattr(m, 'value') else m for m in config.model_config.output_modalities],
229
+ "custom_curl_command": config.model_config.custom_curl_command,
228
230
  "custom_headers": custom_headers,
229
231
  "custom_payload": config.model_config.custom_payload,
230
232
  "custom_response_content_type": config.model_config.custom_response_content_type,
enkryptai_sdk/red_team.py CHANGED
@@ -106,9 +106,7 @@ class RedTeamClient(BaseClient):
106
106
  # "async": config.async_enabled,
107
107
  "dataset_name": config.dataset_name,
108
108
  "test_name": config.test_name,
109
- "redteam_test_configurations": {
110
- k: v.to_dict() for k, v in test_configs.items()
111
- },
109
+ "redteam_test_configurations": test_configs,
112
110
  }
113
111
 
114
112
  if config.target_model_configuration:
@@ -153,9 +151,7 @@ class RedTeamClient(BaseClient):
153
151
  # "async": config.async_enabled,
154
152
  "dataset_name": config.dataset_name,
155
153
  "test_name": config.test_name,
156
- "redteam_test_configurations": {
157
- k: v.to_dict() for k, v in test_configs.items()
158
- },
154
+ "redteam_test_configurations": test_configs,
159
155
  }
160
156
 
161
157
  headers = {
@@ -196,9 +192,7 @@ class RedTeamClient(BaseClient):
196
192
  payload = {
197
193
  # "async": config.async_enabled,
198
194
  "test_name": config.test_name,
199
- "redteam_test_configurations": {
200
- k: v.to_dict() for k, v in test_configs.items()
201
- },
195
+ "redteam_test_configurations": test_configs,
202
196
  }
203
197
 
204
198
  if config.dataset_configuration:
@@ -252,9 +246,7 @@ class RedTeamClient(BaseClient):
252
246
  payload = {
253
247
  # "async": config.async_enabled,
254
248
  "test_name": config.test_name,
255
- "redteam_test_configurations": {
256
- k: v.to_dict() for k, v in test_configs.items()
257
- },
249
+ "redteam_test_configurations": test_configs,
258
250
  }
259
251
 
260
252
  if config.dataset_configuration:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enkryptai-sdk
3
- Version: 1.0.11
3
+ Version: 1.0.13
4
4
  Summary: A Python SDK with guardrails and red teaming functionality for API interactions
5
5
  Home-page: https://github.com/enkryptai/enkryptai-sdk
6
6
  Author: Enkrypt AI Team
@@ -8,8 +8,8 @@ enkryptai_sdk/deployments.py,sha256=A7XZ2JwrMod9V4_aV8bFY_Soh9E3jHdwaTuJ9BwXuyk,
8
8
  enkryptai_sdk/evals.py,sha256=BywyEgIT7xdJ58svO_sDNOMVowdB0RTGoAZPEbCnDVo,2595
9
9
  enkryptai_sdk/guardrails.py,sha256=NluimOA0gM9N3S_q47LTUeG97t9PlYqPHlZahDPkJvI,16365
10
10
  enkryptai_sdk/guardrails_old.py,sha256=SgzPZkTzbAPD9XfmYNG6M1-TrzbhDHpAkI3FjnVWS_s,6434
11
- enkryptai_sdk/models.py,sha256=EA2jwdoYqOjQ8GuRawsZ3syIvVinwhvodTLQlvt51Mo,11399
12
- enkryptai_sdk/red_team.py,sha256=iTBSXNUr_JFFQppKzUzJ5-gWtlPPzY6BkKahhXppaFM,18709
11
+ enkryptai_sdk/models.py,sha256=rrLTT3i96flWidVrr67j6VZ6XmkdxwEzlF4S4aoVmOQ,11559
12
+ enkryptai_sdk/red_team.py,sha256=A1b6R5d3dtZMfb5npBrSu4RX2X-C9V4hubyO9g3BZlA,18441
13
13
  enkryptai_sdk/response.py,sha256=43JRubzgGCpoVxYNzBZY0AlUgLbfcXD_AwD7wU3qY9o,4086
14
14
  enkryptai_sdk/dto/__init__.py,sha256=wHgIv_OCnVMJOys-vqImF59ifogDrMcgxVRmfNayVvc,2761
15
15
  enkryptai_sdk/dto/ai_proxy.py,sha256=clwMN4xdH8Zr55dnhilHbs-qaHRlCOrLPrij0Zd1Av0,11283
@@ -18,10 +18,10 @@ enkryptai_sdk/dto/coc.py,sha256=Lp2aat_24J4KuUg4BeJl9S39tEak8Bw15eJ4cQDrRQk,4749
18
18
  enkryptai_sdk/dto/datasets.py,sha256=RFA9CmbhD-QDDyweBq_k9iBd00b6I6SWmdP9DPNd9fc,5002
19
19
  enkryptai_sdk/dto/deployments.py,sha256=Aw4b8tDA3FYIomqDvCjblCXTagL4bT8Fx91X0SFXs40,11216
20
20
  enkryptai_sdk/dto/guardrails.py,sha256=wfKm2R0uJAq9nljLBPuuT05tj1nBqZraga-5lMHd3n8,49812
21
- enkryptai_sdk/dto/models.py,sha256=08ilpQkp_tpUDzM5Jt-mrWdHlbBgYst0plzzT4G-Gds,14184
22
- enkryptai_sdk/dto/red_team.py,sha256=UNqiPxKqk8TJ-hLtBCWRvtoXyGCFiz3X7bKpx8sTQxo,18298
23
- enkryptai_sdk-1.0.11.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- enkryptai_sdk-1.0.11.dist-info/METADATA,sha256=adej6oT0uO297qJIDmyktoTx7CmgSZWiBMyPWAHYMro,62092
25
- enkryptai_sdk-1.0.11.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
26
- enkryptai_sdk-1.0.11.dist-info/top_level.txt,sha256=s2X9UJJwvJamNmr6ZXWyyQe60sXtQGWFuaBYfhgHI_4,14
27
- enkryptai_sdk-1.0.11.dist-info/RECORD,,
21
+ enkryptai_sdk/dto/models.py,sha256=h8eiDeT-cpCMS5IUFxWzwrLQHAAdnAFrvSuSFw7SiaI,14230
22
+ enkryptai_sdk/dto/red_team.py,sha256=GD_HxFhoaEixyaZLVdoLHmHDXFRf9b-Wq6RT-UJNQfM,18344
23
+ enkryptai_sdk-1.0.13.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ enkryptai_sdk-1.0.13.dist-info/METADATA,sha256=2rSIQzIvmj8ISa4HBKXGEEepdb4ASOxts6E1jo8U8Q0,62092
25
+ enkryptai_sdk-1.0.13.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
26
+ enkryptai_sdk-1.0.13.dist-info/top_level.txt,sha256=s2X9UJJwvJamNmr6ZXWyyQe60sXtQGWFuaBYfhgHI_4,14
27
+ enkryptai_sdk-1.0.13.dist-info/RECORD,,