scale-gp-beta 0.1.0a8__py3-none-any.whl → 0.1.0a10__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.
- scale_gp_beta/_base_client.py +40 -2
- scale_gp_beta/_client.py +9 -1
- scale_gp_beta/_models.py +0 -1
- scale_gp_beta/_utils/_transform.py +46 -1
- scale_gp_beta/_utils/_typing.py +3 -1
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/resources/__init__.py +14 -0
- scale_gp_beta/resources/chat/completions.py +6 -2
- scale_gp_beta/resources/completions.py +6 -2
- scale_gp_beta/resources/datasets.py +17 -1
- scale_gp_beta/resources/evaluations.py +40 -4
- scale_gp_beta/resources/spans.py +654 -0
- scale_gp_beta/types/__init__.py +5 -0
- scale_gp_beta/types/dataset.py +4 -1
- scale_gp_beta/types/dataset_create_params.py +4 -1
- scale_gp_beta/types/dataset_update_params.py +4 -0
- scale_gp_beta/types/evaluation.py +7 -0
- scale_gp_beta/types/evaluation_create_params.py +12 -0
- scale_gp_beta/types/evaluation_list_params.py +4 -2
- scale_gp_beta/types/evaluation_retrieve_params.py +4 -1
- scale_gp_beta/types/evaluation_task.py +205 -0
- scale_gp_beta/types/evaluation_task_param.py +39 -45
- scale_gp_beta/types/span.py +38 -0
- scale_gp_beta/types/span_create_params.py +58 -0
- scale_gp_beta/types/span_list_params.py +27 -0
- scale_gp_beta/types/span_update_params.py +21 -0
- {scale_gp_beta-0.1.0a8.dist-info → scale_gp_beta-0.1.0a10.dist-info}/METADATA +8 -8
- {scale_gp_beta-0.1.0a8.dist-info → scale_gp_beta-0.1.0a10.dist-info}/RECORD +30 -24
- {scale_gp_beta-0.1.0a8.dist-info → scale_gp_beta-0.1.0a10.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a8.dist-info → scale_gp_beta-0.1.0a10.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scale-gp-beta
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a10
|
|
4
4
|
Summary: The official Python library for the Scale GP API
|
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/sgp-python-beta
|
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/sgp-python-beta
|
|
@@ -59,10 +59,10 @@ import os
|
|
|
59
59
|
from scale_gp_beta import SGPClient
|
|
60
60
|
|
|
61
61
|
client = SGPClient(
|
|
62
|
+
account_id="My Account ID",
|
|
62
63
|
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
|
|
63
64
|
# defaults to "production".
|
|
64
65
|
environment="development",
|
|
65
|
-
account_id="My Account ID",
|
|
66
66
|
)
|
|
67
67
|
|
|
68
68
|
completion = client.chat.completions.create(
|
|
@@ -87,10 +87,10 @@ import asyncio
|
|
|
87
87
|
from scale_gp_beta import AsyncSGPClient
|
|
88
88
|
|
|
89
89
|
client = AsyncSGPClient(
|
|
90
|
+
account_id="My Account ID",
|
|
90
91
|
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
|
|
91
92
|
# defaults to "production".
|
|
92
93
|
environment="development",
|
|
93
|
-
account_id="My Account ID",
|
|
94
94
|
)
|
|
95
95
|
|
|
96
96
|
|
|
@@ -252,7 +252,7 @@ print(inference.inference_configuration)
|
|
|
252
252
|
|
|
253
253
|
## File uploads
|
|
254
254
|
|
|
255
|
-
Request parameters that correspond to file uploads can be passed as `bytes`, a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
|
|
255
|
+
Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
|
|
256
256
|
|
|
257
257
|
```python
|
|
258
258
|
from pathlib import Path
|
|
@@ -328,9 +328,9 @@ from scale_gp_beta import SGPClient
|
|
|
328
328
|
|
|
329
329
|
# Configure the default for all requests:
|
|
330
330
|
client = SGPClient(
|
|
331
|
+
account_id="My Account ID",
|
|
331
332
|
# default is 2
|
|
332
333
|
max_retries=0,
|
|
333
|
-
account_id="My Account ID",
|
|
334
334
|
)
|
|
335
335
|
|
|
336
336
|
# Or, configure per-request:
|
|
@@ -350,15 +350,15 @@ from scale_gp_beta import SGPClient
|
|
|
350
350
|
|
|
351
351
|
# Configure the default for all requests:
|
|
352
352
|
client = SGPClient(
|
|
353
|
+
account_id="My Account ID",
|
|
353
354
|
# 20 seconds (default is 1 minute)
|
|
354
355
|
timeout=20.0,
|
|
355
|
-
account_id="My Account ID",
|
|
356
356
|
)
|
|
357
357
|
|
|
358
358
|
# More granular control:
|
|
359
359
|
client = SGPClient(
|
|
360
|
-
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
|
|
361
360
|
account_id="My Account ID",
|
|
361
|
+
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
|
|
362
362
|
)
|
|
363
363
|
|
|
364
364
|
# Override per-request:
|
|
@@ -490,13 +490,13 @@ import httpx
|
|
|
490
490
|
from scale_gp_beta import SGPClient, DefaultHttpxClient
|
|
491
491
|
|
|
492
492
|
client = SGPClient(
|
|
493
|
+
account_id="My Account ID",
|
|
493
494
|
# Or use the `SGP_CLIENT_BASE_URL` env var
|
|
494
495
|
base_url="http://my.test.server.example.com:8083",
|
|
495
496
|
http_client=DefaultHttpxClient(
|
|
496
497
|
proxy="http://my.test.proxy.example.com",
|
|
497
498
|
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
498
499
|
),
|
|
499
|
-
account_id="My Account ID",
|
|
500
500
|
)
|
|
501
501
|
```
|
|
502
502
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
scale_gp_beta/__init__.py,sha256=XmzYbUteZA7f7EPIFNKcPSnSgFpK6ovSlHY57Xk-WGo,2535
|
|
2
|
-
scale_gp_beta/_base_client.py,sha256=
|
|
3
|
-
scale_gp_beta/_client.py,sha256=
|
|
2
|
+
scale_gp_beta/_base_client.py,sha256=YJ1dXCSFJrBs6RVovcusEB-HlBrPakhBQPtrxqU9q-0,66251
|
|
3
|
+
scale_gp_beta/_client.py,sha256=IQedklB_0UJ4lYU56a4HDVoo46LN6oE3Hxy2qi312Qk,24504
|
|
4
4
|
scale_gp_beta/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
5
5
|
scale_gp_beta/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
scale_gp_beta/_exceptions.py,sha256=95GM5CLFtP-QMjjmzsr5ajjZOyEZvyaETfGmqNPR8YM,3226
|
|
7
7
|
scale_gp_beta/_files.py,sha256=VHiUi-XDLm5MK8EbVoB2TdgX3jbYshIfxYLeKv5jaYI,3620
|
|
8
|
-
scale_gp_beta/_models.py,sha256=
|
|
8
|
+
scale_gp_beta/_models.py,sha256=q-l1tes71l6z-D5ffu9-G4UigTVVeJwiwIzA_gO4RFo,29045
|
|
9
9
|
scale_gp_beta/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
scale_gp_beta/_resource.py,sha256=siZly_U6D0AOVLAzaOsqUdEFFzVMbWRj-ml30nvRp7E,1118
|
|
11
11
|
scale_gp_beta/_response.py,sha256=ATtij8CjXVjmhdOWozU9Y0SP4Q_uxCYGFUHroxFnSc4,28853
|
|
12
12
|
scale_gp_beta/_streaming.py,sha256=fcCSGXslmi2SmmkM05g2SACXHk2Mj7k1X5uMBu6U5s8,10112
|
|
13
13
|
scale_gp_beta/_types.py,sha256=ScQhVBaKbtJrER3NkXbjokWE9DqSqREMIw9LE0NrFfA,6150
|
|
14
|
-
scale_gp_beta/_version.py,sha256=
|
|
14
|
+
scale_gp_beta/_version.py,sha256=iYnIL0agVeUM81QWxtR_H4N8cgZsCfwWpVtd418S8Fk,174
|
|
15
15
|
scale_gp_beta/pagination.py,sha256=6AAa8_V0wARlMd1MIXijugYbG1mILGc2tHVKbUQbZyQ,2595
|
|
16
16
|
scale_gp_beta/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
scale_gp_beta/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
@@ -20,29 +20,30 @@ scale_gp_beta/_utils/_proxy.py,sha256=z3zsateHtb0EARTWKk8QZNHfPkqJbqwd1lM993LBwG
|
|
|
20
20
|
scale_gp_beta/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
|
21
21
|
scale_gp_beta/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
|
22
22
|
scale_gp_beta/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
|
23
|
-
scale_gp_beta/_utils/_transform.py,sha256=
|
|
24
|
-
scale_gp_beta/_utils/_typing.py,sha256=
|
|
23
|
+
scale_gp_beta/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
|
|
24
|
+
scale_gp_beta/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
|
|
25
25
|
scale_gp_beta/_utils/_utils.py,sha256=8UmbPOy_AAr2uUjjFui-VZSrVBHRj6bfNEKRp5YZP2A,12004
|
|
26
26
|
scale_gp_beta/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
27
|
-
scale_gp_beta/resources/__init__.py,sha256=
|
|
28
|
-
scale_gp_beta/resources/completions.py,sha256=
|
|
27
|
+
scale_gp_beta/resources/__init__.py,sha256=Fyo05_2_pc5orfyTSIpxa3btmBTd45VasgibwSqbbKo,4942
|
|
28
|
+
scale_gp_beta/resources/completions.py,sha256=sIeBtMECxyi6TQIq8ZX0r_k0HYZq-JoJZO3nPuTVrQc,31885
|
|
29
29
|
scale_gp_beta/resources/dataset_items.py,sha256=BOx6ddLcDvL5L9HweCY62QnxflAs1jQJC-Ni-xzMUf0,22361
|
|
30
|
-
scale_gp_beta/resources/datasets.py,sha256=
|
|
30
|
+
scale_gp_beta/resources/datasets.py,sha256=vtKP_xJVsrv0iE9T5qc-YA0fPeK5DchmQ6Ob_iMmscw,21263
|
|
31
31
|
scale_gp_beta/resources/evaluation_items.py,sha256=iD-srR9ZQQ3WAutxA98_MMj4_1h-B1_lZ_Ujb9F6Ino,11460
|
|
32
|
-
scale_gp_beta/resources/evaluations.py,sha256=
|
|
32
|
+
scale_gp_beta/resources/evaluations.py,sha256=Ahf7wuNha6M_q5tbgkqcnAdLkq6IhFnf1fsSqonG3Hg,27006
|
|
33
33
|
scale_gp_beta/resources/inference.py,sha256=_20eN0x0PZBPNLx2VrozQrJgRVjtlXPjeTpTcnuP0bU,7576
|
|
34
34
|
scale_gp_beta/resources/models.py,sha256=85F8qPJN9lBPbfNm9F8bHpdJSsyekS9B3GDPJtCXaMA,32658
|
|
35
|
+
scale_gp_beta/resources/spans.py,sha256=cm0bAIMRgyG6uEptkZMPzFEp9PQwo0Qpq1QLhMG2WoY,24554
|
|
35
36
|
scale_gp_beta/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
|
36
37
|
scale_gp_beta/resources/chat/chat.py,sha256=4OG_TrwVqYvV-7Ha8Nbc6iuXQuys9wKXgkxYmE6p6jk,3672
|
|
37
|
-
scale_gp_beta/resources/chat/completions.py,sha256=
|
|
38
|
+
scale_gp_beta/resources/chat/completions.py,sha256=RWxjo0AeHBATHzKlPFQsd4wZMt-L5phg5s0w6DqVJLg,46813
|
|
38
39
|
scale_gp_beta/resources/files/__init__.py,sha256=VgAtqUimN5Kf_-lmEaNBnu_ApGegKsJQ1zNf-42MXFA,1002
|
|
39
40
|
scale_gp_beta/resources/files/content.py,sha256=oJxb-28ZOUBgzE_MiAaJOcKFmtlB-N5APdhfZBNJna8,5762
|
|
40
41
|
scale_gp_beta/resources/files/files.py,sha256=M8OdZoIi3fFjJL7oIn8w9TD6TVcASCMy1Ze1YZRbPMo,20530
|
|
41
|
-
scale_gp_beta/types/__init__.py,sha256=
|
|
42
|
+
scale_gp_beta/types/__init__.py,sha256=PXswtuIKTn38CCRpTeJhV_H8JH68A038rpKKwTmyd9Q,3486
|
|
42
43
|
scale_gp_beta/types/completion.py,sha256=5eewo25sdqL4vutqvE8wmugE0Cw6YLzZ0_AD6yjP9NM,3259
|
|
43
44
|
scale_gp_beta/types/completion_create_params.py,sha256=LE9vna29Kbh7E8qUq7EhQbcu7YuCF_h663maKtzOnhk,3063
|
|
44
|
-
scale_gp_beta/types/dataset.py,sha256=
|
|
45
|
-
scale_gp_beta/types/dataset_create_params.py,sha256=
|
|
45
|
+
scale_gp_beta/types/dataset.py,sha256=7hm3W_rGtGYLWWCxH_Wto0h74Ea2XSRzaYBSO0jYU74,584
|
|
46
|
+
scale_gp_beta/types/dataset_create_params.py,sha256=e8AftX5klhylAU-pseKOqaL6Fkdjq_xtFlPkewTTMfM,509
|
|
46
47
|
scale_gp_beta/types/dataset_delete_response.py,sha256=Lc4K761LM__hosWI3gYjYnEl5JXL-cg4DU3lXKhtQoo,345
|
|
47
48
|
scale_gp_beta/types/dataset_item.py,sha256=b4w5G099vEVyj8GNVnjNn-3SkZoFHvlmCXxfQS7I_nM,519
|
|
48
49
|
scale_gp_beta/types/dataset_item_batch_create_params.py,sha256=ORwWuIFKilxhuVhzcF32HD68E0-n5dnRlbyxUk4H3Ko,478
|
|
@@ -53,16 +54,17 @@ scale_gp_beta/types/dataset_item_retrieve_params.py,sha256=VuTBMASWQdWYKmpY06olX
|
|
|
53
54
|
scale_gp_beta/types/dataset_item_update_params.py,sha256=4voEG9nKbxREiFRLzWqXZAWsw3wIm4EU1cnvOmsvGRA,367
|
|
54
55
|
scale_gp_beta/types/dataset_list_params.py,sha256=4rITQ1avOcQObS17cT0NDikOmF7Fd_rxkSlRIfzzfF4,387
|
|
55
56
|
scale_gp_beta/types/dataset_retrieve_params.py,sha256=5tpzuzX6y1WKKxP2AbjYwwcATpB1eZCv4wZABG3baIQ,282
|
|
56
|
-
scale_gp_beta/types/dataset_update_params.py,sha256=
|
|
57
|
-
scale_gp_beta/types/evaluation.py,sha256=
|
|
57
|
+
scale_gp_beta/types/dataset_update_params.py,sha256=8S4fyBybzmElV5345ByeP9lPIbw3WGUQg_mABM_YyLk,378
|
|
58
|
+
scale_gp_beta/types/evaluation.py,sha256=HgTyrOFu5NVBy3dukLIeoVaeg3iIItJH-NucczAcF7E,851
|
|
58
59
|
scale_gp_beta/types/evaluation_archive_response.py,sha256=SkGy3GourPaQRPt84smBd1XhwZqeDTDINK7PtyEEpSY,356
|
|
59
|
-
scale_gp_beta/types/evaluation_create_params.py,sha256=
|
|
60
|
+
scale_gp_beta/types/evaluation_create_params.py,sha256=Pcl0wtuuW6TvJrsYf7w5hjGx4ForJ6UE5oJpp3OEgeg,2699
|
|
60
61
|
scale_gp_beta/types/evaluation_item.py,sha256=KENQ19JXAEGD0q82HwQ6GDx69giPmzP0h0Uo8ehWF8w,603
|
|
61
62
|
scale_gp_beta/types/evaluation_item_list_params.py,sha256=LquF3dWIU6b7O_Sy_b0R2FMk5XC-Jm6mEHLJGUOKLuk,435
|
|
62
63
|
scale_gp_beta/types/evaluation_item_retrieve_params.py,sha256=UYEKIAQ4dy92ZOSV1tWDZcvXG7_0BSpOND5Ehzs7QM4,296
|
|
63
|
-
scale_gp_beta/types/evaluation_list_params.py,sha256=
|
|
64
|
-
scale_gp_beta/types/evaluation_retrieve_params.py,sha256=
|
|
65
|
-
scale_gp_beta/types/
|
|
64
|
+
scale_gp_beta/types/evaluation_list_params.py,sha256=bAYktX3x-rEqNKbBocDyJ0Iqwwz2rZLPK9bHxlU4wYQ,443
|
|
65
|
+
scale_gp_beta/types/evaluation_retrieve_params.py,sha256=_YuT-E2VO-f_SvHaIe24KBbhTNoK8T-3tVB6Ov6cqfg,356
|
|
66
|
+
scale_gp_beta/types/evaluation_task.py,sha256=2ariEI9Hg63xvMo7AlVv74vKFnxxQkuRgm6ODcP_hew,6461
|
|
67
|
+
scale_gp_beta/types/evaluation_task_param.py,sha256=8C43Kt2077v4XzU-QAKJe1qigmdsW1_L8PwB2t21QBo,5958
|
|
66
68
|
scale_gp_beta/types/file.py,sha256=Xkha0eSr1q6hkwjE9e2XNgk8kuHNoTEe1LXNhz6o-1k,528
|
|
67
69
|
scale_gp_beta/types/file_create_params.py,sha256=KpXv6JCbd8BlgceTmBTewxOky2JTJaTW3mcGiVVU7wE,317
|
|
68
70
|
scale_gp_beta/types/file_delete_response.py,sha256=lOsiaw8qrUOnH7smxb27-n7M4D1chfXlAUaMTRmdldY,336
|
|
@@ -79,13 +81,17 @@ scale_gp_beta/types/model_create_params.py,sha256=K04FNqloYYTwffMHnNLRnrPNOKPgG7
|
|
|
79
81
|
scale_gp_beta/types/model_delete_response.py,sha256=fSpTChRLHPOoc9SJbkS4wcLxVOc3kKBOya8wkGow5pY,339
|
|
80
82
|
scale_gp_beta/types/model_list_params.py,sha256=617LRolXLNCV8kadHK7XRGN-0woh0mvj88ZSbPLdGDg,702
|
|
81
83
|
scale_gp_beta/types/model_update_params.py,sha256=RFXvs-EIDHmNO-fnPB8H6B9DlK6bYVsiwFDMPPFHGII,3701
|
|
84
|
+
scale_gp_beta/types/span.py,sha256=SeQzIFtCM2q3-4wHy-uzQOoEXRJnA1awxoHZH3-0h9E,792
|
|
85
|
+
scale_gp_beta/types/span_create_params.py,sha256=KZu7-6WNpXOYr5J-1AMRdnzMsTzgQBRvUvsuRedbxQc,1588
|
|
86
|
+
scale_gp_beta/types/span_list_params.py,sha256=sW5VB-7P8eUgLq_Iv-RLe6tp56oVNMkpfOIttsDPayg,665
|
|
87
|
+
scale_gp_beta/types/span_update_params.py,sha256=pz03g-tLO_nziLUqZOtDMI-6HTlxvzayFEoISXDx9jw,510
|
|
82
88
|
scale_gp_beta/types/chat/__init__.py,sha256=DA0PFPt0oaPb25RI7Cs3RQEJfDLg5-qBiU8l0S_3nnw,443
|
|
83
89
|
scale_gp_beta/types/chat/chat_completion.py,sha256=oYOrsTBdGwV9e_mF4F06XmdyZI4pyw06IQ-0mFn0etk,8250
|
|
84
90
|
scale_gp_beta/types/chat/chat_completion_chunk.py,sha256=57-i6LyOk6IX2HZvXsoUC26e0D0dVBNQjX_GbT0eKEw,7060
|
|
85
91
|
scale_gp_beta/types/chat/completion_create_params.py,sha256=Y7vJNvNM4Sov77l55aS5YtyRnrf7isediu3nKr6YE-A,4505
|
|
86
92
|
scale_gp_beta/types/chat/completion_create_response.py,sha256=0OhfoJW8azVRrZdXRRMuiJ7kEEeMDnKScxrr3sayzDo,374
|
|
87
93
|
scale_gp_beta/types/files/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
88
|
-
scale_gp_beta-0.1.
|
|
89
|
-
scale_gp_beta-0.1.
|
|
90
|
-
scale_gp_beta-0.1.
|
|
91
|
-
scale_gp_beta-0.1.
|
|
94
|
+
scale_gp_beta-0.1.0a10.dist-info/METADATA,sha256=uCMZT4AxHoCQ8b4SrzsONWH3eOSKDiV6F-ukzxzAIgA,16942
|
|
95
|
+
scale_gp_beta-0.1.0a10.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
96
|
+
scale_gp_beta-0.1.0a10.dist-info/licenses/LICENSE,sha256=x49Bj8r_ZpqfzThbmfHyZ_bE88XvHdIMI_ANyLHFFRE,11338
|
|
97
|
+
scale_gp_beta-0.1.0a10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|