prompteval-core 0.1.1__py3-none-any.whl → 0.1.3__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.
- {prompteval-core → prompteval}/client.py +8 -8
- {prompteval_core-0.1.1.dist-info → prompteval_core-0.1.3.dist-info}/METADATA +3 -3
- {prompteval_core-0.1.1.dist-info → prompteval_core-0.1.3.dist-info}/RECORD +9 -9
- prompteval_core-0.1.3.dist-info/top_level.txt +2 -0
- prompteval_core-0.1.1.dist-info/top_level.txt +0 -2
- {prompteval-core → prompteval}/__init__.py +0 -0
- {prompteval-core → prompteval}/cli.py +0 -0
- {prompteval-core → prompteval}/exceptions.py +0 -0
- {prompteval_core-0.1.1.dist-info → prompteval_core-0.1.3.dist-info}/WHEEL +0 -0
- {prompteval_core-0.1.1.dist-info → prompteval_core-0.1.3.dist-info}/entry_points.txt +0 -0
|
@@ -307,7 +307,7 @@ class PromptEval:
|
|
|
307
307
|
|
|
308
308
|
def get_licenses(self) -> List[License]:
|
|
309
309
|
"""Get all licenses for the current user"""
|
|
310
|
-
data = self._request("GET", "/v1/client/licenses")
|
|
310
|
+
data = self._request("GET", "/v1/client/me/licenses")
|
|
311
311
|
|
|
312
312
|
return [
|
|
313
313
|
License(
|
|
@@ -323,13 +323,13 @@ class PromptEval:
|
|
|
323
323
|
for lic in data["licenses"]
|
|
324
324
|
]
|
|
325
325
|
|
|
326
|
-
def get_usage(self, license_id: str) -> Dict[str, Any]:
|
|
327
|
-
"""Get usage statistics
|
|
328
|
-
return self._request("GET",
|
|
329
|
-
|
|
330
|
-
def get_api_keys(self, license_id: str) -> List[Dict[str, Any]]:
|
|
331
|
-
"""Get API keys for
|
|
332
|
-
data = self._request("GET",
|
|
326
|
+
def get_usage(self, license_id: str = None) -> Dict[str, Any]:
|
|
327
|
+
"""Get usage statistics"""
|
|
328
|
+
return self._request("GET", "/v1/client/me/usage")
|
|
329
|
+
|
|
330
|
+
def get_api_keys(self, license_id: str = None) -> List[Dict[str, Any]]:
|
|
331
|
+
"""Get API keys for current license"""
|
|
332
|
+
data = self._request("GET", "/v1/client/me/api-keys")
|
|
333
333
|
return data["api_keys"]
|
|
334
334
|
|
|
335
335
|
# =========================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prompteval-core
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Semantic Testing for LLMs - Test your AI outputs with semantic similarity validation
|
|
5
5
|
Home-page: https://github.com/prompteval/prompteval-sdk
|
|
6
6
|
Author: PromptEval Team
|
|
@@ -39,7 +39,7 @@ Dynamic: requires-python
|
|
|
39
39
|
|
|
40
40
|
**Semantic Testing for LLMs** - Test your AI outputs with semantic similarity validation.
|
|
41
41
|
|
|
42
|
-

|
|
43
43
|

|
|
44
44
|

|
|
45
45
|
|
|
@@ -48,7 +48,7 @@ Dynamic: requires-python
|
|
|
48
48
|
### Installation
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
pip install prompteval
|
|
51
|
+
pip install prompteval-core
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### CLI Usage
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
prompteval
|
|
2
|
-
prompteval
|
|
3
|
-
prompteval
|
|
4
|
-
prompteval
|
|
1
|
+
prompteval/__init__.py,sha256=MjH0SACMz-Pqylt1tTb_X1XadusKdSGpl26OCwxKdQg,1277
|
|
2
|
+
prompteval/cli.py,sha256=0jAnqfdMh1xW7hFWHBfTYtsjzGDmgc-MpCTh0r1eh3E,20202
|
|
3
|
+
prompteval/client.py,sha256=MYUMxCXZ61vHpMRcyJ3PgYlFFjBVHb6UdL3Mkqk3Ei0,14171
|
|
4
|
+
prompteval/exceptions.py,sha256=GdPYCZTA0ZYlLdI1aokLLilKN_0cq6TlhKHNM8hHQ3A,881
|
|
5
5
|
venv/Lib/site-packages/__editable___prompteval_0_1_0_finder.py,sha256=QGgRjq78H8O8kPfq2eWHUr4duECmUAQ0vQA6fIENu5w,3839
|
|
6
6
|
venv/Lib/site-packages/_yaml/__init__.py,sha256=04Ae_5osxahpJHa3XBZUAf4wi6XX32gR8D6X6p64GEA,1402
|
|
7
7
|
venv/Lib/site-packages/build/__init__.py,sha256=t4umCWGa3xQF99hOJT5ezDpNig4RbFNg7v8qRgDP2eI,837
|
|
@@ -1376,8 +1376,8 @@ venv/Lib/site-packages/yaml/resolver.py,sha256=9L-VYfm4mWHxUD1Vg4X7rjDRK_7VZd6b9
|
|
|
1376
1376
|
venv/Lib/site-packages/yaml/scanner.py,sha256=YEM3iLZSaQwXcQRg2l2R4MdT0zGP2F9eHkKGKnHyWQY,51279
|
|
1377
1377
|
venv/Lib/site-packages/yaml/serializer.py,sha256=ChuFgmhU01hj4xgI8GaKv6vfM2Bujwa9i7d2FAHj7cA,4165
|
|
1378
1378
|
venv/Lib/site-packages/yaml/tokens.py,sha256=lTQIzSVw8Mg9wv459-TjiOQe6wVziqaRlqX2_89rp54,2573
|
|
1379
|
-
prompteval_core-0.1.
|
|
1380
|
-
prompteval_core-0.1.
|
|
1381
|
-
prompteval_core-0.1.
|
|
1382
|
-
prompteval_core-0.1.
|
|
1383
|
-
prompteval_core-0.1.
|
|
1379
|
+
prompteval_core-0.1.3.dist-info/METADATA,sha256=F80hup_nHN6n0RWWy7qrnKkDutzDcEWoPKAefG5_bL0,8436
|
|
1380
|
+
prompteval_core-0.1.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
1381
|
+
prompteval_core-0.1.3.dist-info/entry_points.txt,sha256=jCK2NmAww2fdGqXKKkuRXWrvO8ekgZompxeXqEn0zPo,51
|
|
1382
|
+
prompteval_core-0.1.3.dist-info/top_level.txt,sha256=YtChKk8S7-4EPoOCkvdVToUVq-Wuv9rzqT2VkeWk14U,16
|
|
1383
|
+
prompteval_core-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|