together 2.0.0a17__py3-none-any.whl → 2.0.0a19__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.
- together/_base_client.py +5 -2
- together/_client.py +1 -77
- together/_compat.py +3 -3
- together/_utils/_json.py +35 -0
- together/_version.py +1 -1
- together/lib/cli/api/beta/__init__.py +2 -0
- together/lib/cli/api/beta/jig/__init__.py +52 -0
- together/lib/cli/api/beta/jig/_config.py +170 -0
- together/lib/cli/api/beta/jig/jig.py +664 -0
- together/lib/cli/api/beta/jig/secrets.py +138 -0
- together/lib/cli/api/beta/jig/volumes.py +509 -0
- together/lib/cli/api/endpoints/create.py +7 -3
- together/lib/cli/api/endpoints/hardware.py +38 -7
- together/lib/cli/api/models/upload.py +5 -1
- together/resources/__init__.py +0 -28
- together/resources/beta/__init__.py +14 -0
- together/resources/beta/beta.py +32 -0
- together/resources/beta/clusters/clusters.py +12 -12
- together/resources/beta/clusters/storage.py +10 -10
- together/resources/beta/jig/__init__.py +61 -0
- together/resources/beta/jig/jig.py +1004 -0
- together/resources/beta/jig/queue.py +482 -0
- together/resources/beta/jig/secrets.py +548 -0
- together/resources/beta/jig/volumes.py +514 -0
- together/resources/chat/completions.py +10 -0
- together/resources/endpoints.py +103 -1
- together/resources/models/__init__.py +33 -0
- together/resources/{models.py → models/models.py} +41 -9
- together/resources/models/uploads.py +163 -0
- together/types/__init__.py +2 -4
- together/types/beta/__init__.py +6 -0
- together/types/beta/deployment.py +261 -0
- together/types/beta/deployment_logs.py +11 -0
- together/types/beta/jig/__init__.py +20 -0
- together/types/beta/jig/queue_cancel_params.py +13 -0
- together/types/beta/jig/queue_cancel_response.py +11 -0
- together/types/beta/jig/queue_metrics_params.py +12 -0
- together/types/beta/jig/queue_metrics_response.py +8 -0
- together/types/beta/jig/queue_retrieve_params.py +15 -0
- together/types/beta/jig/queue_retrieve_response.py +35 -0
- together/types/beta/jig/queue_submit_params.py +19 -0
- together/types/beta/jig/queue_submit_response.py +25 -0
- together/types/beta/jig/secret.py +33 -0
- together/types/beta/jig/secret_create_params.py +34 -0
- together/types/beta/jig/secret_list_response.py +16 -0
- together/types/beta/jig/secret_update_params.py +34 -0
- together/types/beta/jig/volume.py +47 -0
- together/types/beta/jig/volume_create_params.py +34 -0
- together/types/beta/jig/volume_list_response.py +16 -0
- together/types/beta/jig/volume_update_params.py +34 -0
- together/types/beta/jig_deploy_params.py +150 -0
- together/types/beta/jig_list_response.py +16 -0
- together/types/beta/jig_retrieve_logs_params.py +12 -0
- together/types/beta/jig_update_params.py +141 -0
- together/types/chat/completion_create_params.py +11 -0
- together/types/{hardware_list_params.py → endpoint_list_hardware_params.py} +2 -2
- together/types/{hardware_list_response.py → endpoint_list_hardware_response.py} +2 -2
- together/types/models/__init__.py +5 -0
- together/types/{job_retrieve_response.py → models/upload_status_response.py} +3 -3
- {together-2.0.0a17.dist-info → together-2.0.0a19.dist-info}/METADATA +15 -14
- {together-2.0.0a17.dist-info → together-2.0.0a19.dist-info}/RECORD +64 -30
- together/resources/hardware.py +0 -181
- together/resources/jobs.py +0 -214
- together/types/job_list_response.py +0 -47
- {together-2.0.0a17.dist-info → together-2.0.0a19.dist-info}/WHEEL +0 -0
- {together-2.0.0a17.dist-info → together-2.0.0a19.dist-info}/entry_points.txt +0 -0
- {together-2.0.0a17.dist-info → together-2.0.0a19.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
together/__init__.py,sha256=ghwEH6EUrPERUwHVSXaCJVqS7QmLN7NsUxKJNXQrOYM,2842
|
|
2
|
-
together/_base_client.py,sha256=
|
|
3
|
-
together/_client.py,sha256=
|
|
4
|
-
together/_compat.py,sha256=
|
|
2
|
+
together/_base_client.py,sha256=GHCcpXtvG771s86xgrq236CGuR-QKdN4sqT0VUaNXHY,73660
|
|
3
|
+
together/_client.py,sha256=r-Yqf90SYRiN6MDyUMSJJHrmuq8VIMZy-mSEbQozokM,36700
|
|
4
|
+
together/_compat.py,sha256=teO44AYozpv2wFRrUi7brcZfGPpFSERQZ4fcdX6zVvs,6627
|
|
5
5
|
together/_constants.py,sha256=i39tJ7BP8nnqvdHFJwMhN6LWR6-jg5LLYiFudwCD3Ic,463
|
|
6
6
|
together/_exceptions.py,sha256=cpi7uHZjLovYHSeH_aTV7vmDj3dLx7mNN6hEdOY1vjo,3224
|
|
7
7
|
together/_files.py,sha256=UarpxWq6Ih30GuH3tuJGoqUH4PkHdCQ8ABXo92gYgT8,3620
|
|
@@ -11,13 +11,14 @@ together/_resource.py,sha256=-ZTq9O5qf2YsgjJk_gwJs-CM_OG4p6gdMLcNWjuxFwQ,1112
|
|
|
11
11
|
together/_response.py,sha256=lvqEsCbpD8SRJTjlhhUFGbnLUR_4-Qva-OApxfVdiY4,28800
|
|
12
12
|
together/_streaming.py,sha256=sk6fVYbpdO3Y-0S5iwZTHQJ3N24UkK0KaupgUTftWZk,11825
|
|
13
13
|
together/_types.py,sha256=6XJrgQABAp4xUfdSwlKJ3gAG0eRQHG92TwqqxgLh_tI,7596
|
|
14
|
-
together/_version.py,sha256=
|
|
14
|
+
together/_version.py,sha256=xCfik645tRC6X-l1b8OVR8ZkIek-JuV8FrRxgwj2_hk,169
|
|
15
15
|
together/constants.py,sha256=U1SgiirDQMiT5XvyrGcnNxPKlFmWeKq3TGkWLtB705w,1305
|
|
16
16
|
together/error.py,sha256=Xn-OeVpHIP06zWuLlqCTdglks2UOZpjdXzi2P46NlqA,452
|
|
17
17
|
together/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
together/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
19
19
|
together/_utils/_compat.py,sha256=rN17SSvjMoQE1GmKFTLniRuG1sKj2WAD5VjdLPeRlF0,1231
|
|
20
20
|
together/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
|
|
21
|
+
together/_utils/_json.py,sha256=bl95uuIWwgSfXX-gP1trK_lDAPwJujYfJ05Cxo2SEC4,962
|
|
21
22
|
together/_utils/_logs.py,sha256=3TtxoFPaguw0LX42uwnd1IOmNKqpOPHwXDG8zUVn4iI,780
|
|
22
23
|
together/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
|
23
24
|
together/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
|
@@ -33,7 +34,7 @@ together/lib/_google_colab.py,sha256=_-fqTU1NY2XfKttGjCH_b47W8g9xVIuQgcjn44STbVw
|
|
|
33
34
|
together/lib/constants.py,sha256=w8-zVl8XZiJxqMdhbWekigHJ0JUMPoV9R3ejUHIcUJk,2237
|
|
34
35
|
together/lib/cli/__init__.py,sha256=zXBNfMDUsWMUVN7FgKNRzzZHpq8EjpdfR9carjCFtog,2005
|
|
35
36
|
together/lib/cli/api/_utils.py,sha256=r7Aifi6KdzqwlQrHLVrAeYp54EvU7HS07VNkE_DCmA8,5749
|
|
36
|
-
together/lib/cli/api/beta/__init__.py,sha256=
|
|
37
|
+
together/lib/cli/api/beta/__init__.py,sha256=m0RUU0FzZjM7uqp2tB_rRLYbPRuxDR-VbZocXET-UFo,241
|
|
37
38
|
together/lib/cli/api/beta/clusters/__init__.py,sha256=1i0jKTNS2dM9646Ph1By4fCSAU8ZzPbn6baRfYQnnXw,1256
|
|
38
39
|
together/lib/cli/api/beta/clusters/create.py,sha256=M7Fg2aAaba_vRUNOpF9gnMnWDM8JO1_nyOsUtyiFt0o,6671
|
|
39
40
|
together/lib/cli/api/beta/clusters/delete.py,sha256=BpLgzNZbU8nl2DK4W_OvVcr1IaVb5_5K-PfFtxx5OUs,1034
|
|
@@ -47,11 +48,16 @@ together/lib/cli/api/beta/clusters/storage/create.py,sha256=03JaXRsDxcLbCDxX4-8i
|
|
|
47
48
|
together/lib/cli/api/beta/clusters/storage/delete.py,sha256=KSuCPG-KOZUZX1BlApksiELvicZD2hdl-uUumxjz4JA,1082
|
|
48
49
|
together/lib/cli/api/beta/clusters/storage/list.py,sha256=Pn12uJ7HhZ2MfRBeVMc8mdaB938JXqvKuKxHTzL3zlc,1076
|
|
49
50
|
together/lib/cli/api/beta/clusters/storage/retrieve.py,sha256=PnyZxZ_DKN-UNVITpOBP94y56hatbh1WOwqWYAV7eu8,772
|
|
51
|
+
together/lib/cli/api/beta/jig/__init__.py,sha256=5PzVN4vbDUEPeRzzMcIGintcoojxhtMzWIIgRQ7RXbc,1136
|
|
52
|
+
together/lib/cli/api/beta/jig/_config.py,sha256=M-aEU18RPLhx2DucQJsf4eYQiYF9n9RO9L_MTeT_7eY,5715
|
|
53
|
+
together/lib/cli/api/beta/jig/jig.py,sha256=PbfdPxEGEtmq5LvEAkdguuSaxkSXWGQlwYqBn6aL7Jo,24059
|
|
54
|
+
together/lib/cli/api/beta/jig/secrets.py,sha256=XEhRmZji4QUdrLdC7Ntk7H6ZfYvLgtVK-51eGhw7TKs,4457
|
|
55
|
+
together/lib/cli/api/beta/jig/volumes.py,sha256=1nPqzzXegtmnqsjXE7htP7ZGtPUK373cSaGYcwfQIM4,18330
|
|
50
56
|
together/lib/cli/api/endpoints/__init__.py,sha256=wZJvqaNxQhOZ6NLctrRjR2tbf6rL14ZGHQ_w-fmmCcI,1759
|
|
51
57
|
together/lib/cli/api/endpoints/availability_zones.py,sha256=DF1gxtmvhyQyIIOYw7QS00k2tDMJ1E5qPVoLu2gLBI8,766
|
|
52
|
-
together/lib/cli/api/endpoints/create.py,sha256=
|
|
58
|
+
together/lib/cli/api/endpoints/create.py,sha256=JBkYJkrsb1wI81dNqpTvl5o2JVT-zIh7v_UPOK_tsZ0,5084
|
|
53
59
|
together/lib/cli/api/endpoints/delete.py,sha256=rvLcI_m5N8Mx2elNxJB4aPDuMuGmFcKaJcQO1BKauCA,447
|
|
54
|
-
together/lib/cli/api/endpoints/hardware.py,sha256=
|
|
60
|
+
together/lib/cli/api/endpoints/hardware.py,sha256=dXaEWAWIyuFwQYH22mhUdWPvP7z-FheoQ0aeUrXLshI,2846
|
|
55
61
|
together/lib/cli/api/endpoints/list.py,sha256=EUr3p2VXNPiwED_LIzAPTmvjlpuPbAzCEGfzmCEl0mM,1734
|
|
56
62
|
together/lib/cli/api/endpoints/retrieve.py,sha256=KOBQ8BHV6D36Uujm-YCZ8gli56dyyVneivh5hHpqmMY,753
|
|
57
63
|
together/lib/cli/api/endpoints/start.py,sha256=H4WdoSUf1xNCW1YLTj0_rIAX7PJbJeHHXeKmpLNGWuo,821
|
|
@@ -80,7 +86,7 @@ together/lib/cli/api/fine_tuning/list_events.py,sha256=GUVuFFpJNL_BkxYVgtLSzuhBP
|
|
|
80
86
|
together/lib/cli/api/fine_tuning/retrieve.py,sha256=IskJVcfWwxaB-0jOHZ2nrew4mozNixza9R-95psBzrY,870
|
|
81
87
|
together/lib/cli/api/models/__init__.py,sha256=eITfO7XSwhdRQMUYlmVKge_lpOCmKnEGL3PhvjQlttM,234
|
|
82
88
|
together/lib/cli/api/models/list.py,sha256=W5DT-rlLvpO-X1INbES8qQTJ9PrcyIrZbQ17cG0AY8E,1796
|
|
83
|
-
together/lib/cli/api/models/upload.py,sha256=
|
|
89
|
+
together/lib/cli/api/models/upload.py,sha256=L9NQsnJfgNB0UaLlnSijhzx-bJe5eIgR0ScHMwKvoIQ,2912
|
|
84
90
|
together/lib/resources/__init__.py,sha256=ystIb0pBHQLuwUBtHJwhRgtjK3_TV6K0KuM8NGuuNoU,172
|
|
85
91
|
together/lib/resources/files.py,sha256=Z_D23IvjYYWBpYrfYolCNfUslJBcE4PnU0WtuLsN67M,37277
|
|
86
92
|
together/lib/resources/fine_tuning.py,sha256=A-hOJqcGSPzw24wwX6K27OqV3B-u43dfdrK4nj4ItTg,13088
|
|
@@ -92,18 +98,15 @@ together/lib/utils/_log.py,sha256=mo5tDhyFTNqEj8MOcpy3bLmLBcC0OQ67orTw_nxFdcU,19
|
|
|
92
98
|
together/lib/utils/files.py,sha256=CVTFwI7yMzpaQ-GsGr1tD4O2kXA-i369Pi0eMnlWMmI,31854
|
|
93
99
|
together/lib/utils/serializer.py,sha256=wJwySGxAL0e1giZzFpl4hHH3s9lkoNN_yzu-P_jdRIo,287
|
|
94
100
|
together/lib/utils/tools.py,sha256=rrpz3EXEVViou5GDPjVoCSt2zDPJYDzWYqTsVO1-OgI,2183
|
|
95
|
-
together/resources/__init__.py,sha256=
|
|
101
|
+
together/resources/__init__.py,sha256=69nfJ1iuqr2t-QN_GasnUlFgiAoWykTMVSPgNRiAbtk,7101
|
|
96
102
|
together/resources/batches.py,sha256=FTdtVrCGstua94Imd5kqPhvzTBA8MdcFXuNb9gMha8Q,15386
|
|
97
103
|
together/resources/completions.py,sha256=DHTQs7PLxjwWacEtRSmB2AKat3DaWotm8vz2Z7F_WDE,41505
|
|
98
104
|
together/resources/embeddings.py,sha256=7EU6DZQd0Nm0Sh7x7v37QQOLNuLqNmcjdJAyOTckeRo,7447
|
|
99
|
-
together/resources/endpoints.py,sha256
|
|
105
|
+
together/resources/endpoints.py,sha256=4_L8ofc6SjlZjuEs23l26Q4wG-wVahfW5eHPBROH1a0,31995
|
|
100
106
|
together/resources/evals.py,sha256=FPjvkbsBY5rrzLyQ-X1G9fWt2QmivI9ol5GExGtqYVA,16216
|
|
101
107
|
together/resources/files.py,sha256=0paHeVqNt3NQCXoztCgFS8PEIg_-mMVto-ulHTr7GzE,16854
|
|
102
108
|
together/resources/fine_tuning.py,sha256=BiCxQpdTjW5ArBufmWHNQoYY4z7Ulge8dI9GDCa5Dow,54795
|
|
103
|
-
together/resources/hardware.py,sha256=xgfCmMrrwF5o1igax0JGec8RY7kkS0s4kKm62RdC3ME,6850
|
|
104
109
|
together/resources/images.py,sha256=mVPQYpDHKBjLVO_Sv0uT62zYXdtWKN2PW3fCvfQLQCs,12612
|
|
105
|
-
together/resources/jobs.py,sha256=TnzSnvJw4x5pqo1xzrkYH8f0viZrzyOqT-_w7xc0NzY,7797
|
|
106
|
-
together/resources/models.py,sha256=QqPV9wlY2eTY_-aHSj805rkEsm2dD4lc6MTUvJbj_co,11773
|
|
107
110
|
together/resources/rerank.py,sha256=Xoaco2OvKdII7AhPaJDqUqoXmJvXbTWmY4_g_aqq8dQ,8334
|
|
108
111
|
together/resources/videos.py,sha256=AdcC08JrUtbcEJV-G0viH4CF1qU9oNjdjQ7U38QCEkU,14883
|
|
109
112
|
together/resources/audio/__init__.py,sha256=MKUWFwFsAdCf9LrO8AiUCeIzdknPNDPr4lpAt-pkYSw,2521
|
|
@@ -112,18 +115,26 @@ together/resources/audio/speech.py,sha256=ZavAHDhi8rKzIQ0tRTv1UOIlUJQ5_ArvH3JG1J
|
|
|
112
115
|
together/resources/audio/transcriptions.py,sha256=HtegYl2NUfx_fph-iqKkQ5GKm-3V4yQagBKueS8IIqI,13155
|
|
113
116
|
together/resources/audio/translations.py,sha256=VPkg5ZUDw5LZwiaRYqEjETKwSMMU1odTeStl5PZSrls,10443
|
|
114
117
|
together/resources/audio/voices.py,sha256=Lj9DtOcv_Dhaq3E5p7Oty1T_JkhrsGDZcDF91HHA3Yw,4905
|
|
115
|
-
together/resources/beta/__init__.py,sha256=
|
|
116
|
-
together/resources/beta/beta.py,sha256=
|
|
118
|
+
together/resources/beta/__init__.py,sha256=j_A9BJcIUHEal_qHSrNE6xZ1TioQGR7swjPCmwI-Qng,1413
|
|
119
|
+
together/resources/beta/beta.py,sha256=wccSBgvD_CXr6IiP69FLiv03vv31es5bWD6HACb81Do,4588
|
|
117
120
|
together/resources/beta/clusters/__init__.py,sha256=lW7cWkNzotbOcP4fSnFxvKlVrq1flpN4yC4hr-vuzKE,1041
|
|
118
|
-
together/resources/beta/clusters/clusters.py,sha256=
|
|
119
|
-
together/resources/beta/clusters/storage.py,sha256=
|
|
121
|
+
together/resources/beta/clusters/clusters.py,sha256=XT1AwLZTErzeiIdoZmR3U6CCMf5lkRWdj5P7cne8b1A,25041
|
|
122
|
+
together/resources/beta/clusters/storage.py,sha256=sdla1KchRCoya_yZfF2pfhLWNwrdXEoKWuw8UBS7UlY,19237
|
|
123
|
+
together/resources/beta/jig/__init__.py,sha256=ZntvTFCV75uYT6wzLMpXAa4XOYa1-5ImDoUI0B9a1_s,1876
|
|
124
|
+
together/resources/beta/jig/jig.py,sha256=809I-QInrBOBKr8evbnCoGuKdOuqDLn1i1rAFX-3jCU,40212
|
|
125
|
+
together/resources/beta/jig/queue.py,sha256=B_L62y8i-sFcdZLxnPCxQkKILCPoSUr6o1SqgRdQAgA,17133
|
|
126
|
+
together/resources/beta/jig/secrets.py,sha256=_Un3KC4iRJ8ZiOZfQeT0q23CBtYbPBxguVdKD3gMLjM,20739
|
|
127
|
+
together/resources/beta/jig/volumes.py,sha256=ORQmOMGOCMpOHcKeQmYedAK1VoILFEohSmWAcxTB3iI,19182
|
|
120
128
|
together/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
|
121
129
|
together/resources/chat/chat.py,sha256=aJQQ4Zlof2NlrG53auI5omXPJVdG3c_vwnEkj-ahLG4,3688
|
|
122
|
-
together/resources/chat/completions.py,sha256=
|
|
130
|
+
together/resources/chat/completions.py,sha256=bTiqgQeiEoX5DmKZHZm2FESLDPPeZaonhJDMuGS5QCE,57952
|
|
123
131
|
together/resources/code_interpreter/__init__.py,sha256=qeNVuBUuYy66RDhyh4RDx_xsf0gTMIrrZkZHpkPy9r0,1146
|
|
124
132
|
together/resources/code_interpreter/code_interpreter.py,sha256=ZrWQIn5FO-uau3qTt_HhsHiaclM_ZNfOqZI_AWT2SMk,10373
|
|
125
133
|
together/resources/code_interpreter/sessions.py,sha256=Sl8X6-r1gds2VHhzpjPhfwYNTciZCJxAH-YjJerA_eU,5020
|
|
126
|
-
together/
|
|
134
|
+
together/resources/models/__init__.py,sha256=PgCtBXoungcmr-18vtpzZfu9P5VRiu8tshRtTCYUKl8,1015
|
|
135
|
+
together/resources/models/models.py,sha256=_ohtkX1i7bdzrMIeyxvSRG8JoHHKhjZ4EqaCvY15Tq4,12880
|
|
136
|
+
together/resources/models/uploads.py,sha256=gKq7pTDJMbAXAxWrVTUaUib39GqSvHgSCrUHEgS009Y,5884
|
|
137
|
+
together/types/__init__.py,sha256=cQN02J9EKsC8-Qa5QPGRSyXLuNdLSKHFZDh6zfOslEw,5116
|
|
127
138
|
together/types/audio_speech_stream_chunk.py,sha256=npxlsMce0q4_VoJaZzfSh982TYTM0-j-zmhyI-9hP5o,346
|
|
128
139
|
together/types/autoscaling.py,sha256=nlOvbwrsgJQsz2ALlunp9o4sRdAmLe1tinXKSBNa2Yg,447
|
|
129
140
|
together/types/autoscaling_param.py,sha256=GNyqO4jV5zQie2BmOjfwpESxJ9IyVcz6p9wAxGIf6F0,544
|
|
@@ -141,6 +152,8 @@ together/types/embedding.py,sha256=ThcALXoTfDPptcFikqfUjDkBTHk3diJtYJ4hXYQOVHk,4
|
|
|
141
152
|
together/types/embedding_create_params.py,sha256=6FEUFFRj3EQ7_3T8qjjCpfpA1YWzcpcO259db5koNCo,913
|
|
142
153
|
together/types/endpoint_create_params.py,sha256=-9rL6FvjMBJGquBG4kTpJ7j0Ot7nkE3srr44-W_f8uc,1316
|
|
143
154
|
together/types/endpoint_list_avzones_response.py,sha256=LbzRkG7snD7Swy-t0E0MLXrlU-utn_N9qPwjPkr8jT4,303
|
|
155
|
+
together/types/endpoint_list_hardware_params.py,sha256=F45KYk-0peZeEFAMtKjGU8UHD-3KrcF0D74EYB4nOHI,451
|
|
156
|
+
together/types/endpoint_list_hardware_response.py,sha256=bK6Goi8v9xHkDmYSgkprnrggBrPAt6IoVsv935n3630,1748
|
|
144
157
|
together/types/endpoint_list_params.py,sha256=83Mg5beLYX_ipn1X_izk7hDIO8q8YNEL-tjsv5AcNXo,506
|
|
145
158
|
together/types/endpoint_list_response.py,sha256=LPyv8np_HctSW0QKstC8k7vF0RAejb6X9N2JowZtaEY,1010
|
|
146
159
|
together/types/endpoint_update_params.py,sha256=ONGRuPZQe_C40N5tfnu-HyPBNFvPRWeA3A9lEtrligc,780
|
|
@@ -171,14 +184,10 @@ together/types/finetune.py,sha256=fTMToJXPfBAD7L19WpkaimGtytRcIL80Cz2Fmhnbsps,11
|
|
|
171
184
|
together/types/finetune_event.py,sha256=0apAXe6Anx2_ffse2pOBJDxngCeuSvuDMYczZ0DtzZg,787
|
|
172
185
|
together/types/finetune_event_type.py,sha256=Bm4lkBhsLI_kaD5yabsvW6BpnjXzZO_lwDtiEeMNXnw,824
|
|
173
186
|
together/types/finetune_response.py,sha256=yRia3VGyLbqUnxpHz4idMKZXglXlVQHrt9tJL_-YwpM,5018
|
|
174
|
-
together/types/hardware_list_params.py,sha256=BbfiigtdQE0QNGFGr6o-Twg912x_riH5mbUNpZWYWO4,435
|
|
175
|
-
together/types/hardware_list_response.py,sha256=KfGhnEy7qEW2Bzt4Q8b-JSvxG-IKIIFfcpWEQHS9YdM,1732
|
|
176
187
|
together/types/image_data_b64.py,sha256=pLY7JDBb1HF1T29ACbae_xn6JQfttpqQVeG_jJeenZU,284
|
|
177
188
|
together/types/image_data_url.py,sha256=6A_EYNfcR6Z6sZkyC4MThxeZnK2cvTuQn6-A1dXM85w,274
|
|
178
189
|
together/types/image_file.py,sha256=sADh0UcrGlemkreIvHBEBizstAvt64CVOu7KtOALcHk,569
|
|
179
190
|
together/types/image_generate_params.py,sha256=bdOsD1NXYjCq8QT27wCd8P1hGWIfCd70E8u6n8TLzGQ,2783
|
|
180
|
-
together/types/job_list_response.py,sha256=y7tFXGH2dYD9PfVH2_2Rf6RDkWsW4olljXt5FnGO6UA,950
|
|
181
|
-
together/types/job_retrieve_response.py,sha256=I4HHmSUCAVFuy2RkrZuanssaPLRkDmG_i0Qc192yRmM,880
|
|
182
191
|
together/types/log_probs.py,sha256=A1DD9Cdb5G7bufrBiaMZC4HJ7v1NH5_zFEYvLgFY1NI,473
|
|
183
192
|
together/types/model_list_params.py,sha256=W1S2NtMJOsGGYo1Y01foP6BUYjovMgk7jOU6a3Yo4p8,319
|
|
184
193
|
together/types/model_list_response.py,sha256=MvJLqK_tczrk8kCijb0HChLs706_pXJdf1EJgslON2w,273
|
|
@@ -202,19 +211,42 @@ together/types/audio/transcription_create_response.py,sha256=z8_pzJlzYjP4QxJhwbK
|
|
|
202
211
|
together/types/audio/translation_create_params.py,sha256=6-iHFC2K2o72K5tj0lfD-Lb69JzV4_5t_x2sdj2Pafs,1232
|
|
203
212
|
together/types/audio/translation_create_response.py,sha256=T6SUCExVMin1qSGamHuiWGWS84MZ92tZPBHD7NYm4IU,1843
|
|
204
213
|
together/types/audio/voice_list_response.py,sha256=vS2yvGBz7U2cxnJkEr7BewT7j5ActDjn99k3QhhEKk4,517
|
|
205
|
-
together/types/beta/__init__.py,sha256=
|
|
214
|
+
together/types/beta/__init__.py,sha256=A61EgVZ0h9nvVydlFkcujGkntxPk79DzT00qnVlooFo,975
|
|
206
215
|
together/types/beta/cluster.py,sha256=QE0KMFrKikFbz5lZytvGqai9IBPAr_3PC_kqZd4yCcA,1636
|
|
207
216
|
together/types/beta/cluster_create_params.py,sha256=HwAsWvvhhTyLiAzGk7yo15bNredUUANR4yvnjYj-h5Y,1500
|
|
208
217
|
together/types/beta/cluster_delete_response.py,sha256=rQ3dxuhlCqiuJBaVUUH51tNOkT6Xl-gnp0rRUxI6fOo,219
|
|
209
218
|
together/types/beta/cluster_list_regions_response.py,sha256=QzRO4ns6nrZvMcdTKF9Tjk7wcjXvYMQgiRztLIkEzxQ,391
|
|
210
219
|
together/types/beta/cluster_list_response.py,sha256=Vctdf-x12g1Y4vJHJ06GFCBXKaVdU6m8Pyb9OV8IM1Q,277
|
|
211
220
|
together/types/beta/cluster_update_params.py,sha256=C3OIOG1IyjV4_UeH24rzVbYAmSJiBT0Hs5bb3lXZCcU,328
|
|
221
|
+
together/types/beta/deployment.py,sha256=yJJZsyG--a52Gm1bys0cTt_qAoW1K0qif8FEhTRI70I,8017
|
|
222
|
+
together/types/beta/deployment_logs.py,sha256=2YMNvQQkc45Is_BpkBYANDxcp30KgKy30sGH1ax4-sk,258
|
|
223
|
+
together/types/beta/jig_deploy_params.py,sha256=0a2xA01oH9_ZVf9Val0opQA2FLH7lr-83hHacHKmBfU,4180
|
|
224
|
+
together/types/beta/jig_list_response.py,sha256=hbAeOW_7D5b6m-2tPnXrYmmEk8Rup-Gzp8lvnklMoQA,457
|
|
225
|
+
together/types/beta/jig_retrieve_logs_params.py,sha256=xv3BVoi-_ooWfNuyPpLMbz0io7h-O3nER18XqxFWLq8,311
|
|
226
|
+
together/types/beta/jig_update_params.py,sha256=_W-eszmO59hr55GCCHHr5ylSQtbGb5Qg_cmRHQqrL74,3896
|
|
212
227
|
together/types/beta/clusters/__init__.py,sha256=lQZ_CtOtxPVEFjzZVcA23QL03OAHy1nhkoHMEaRof58,503
|
|
213
228
|
together/types/beta/clusters/cluster_storage.py,sha256=LyQuFNZfypsXITxnJaPmo-YlgnTJ1Nj8rSAWj4HVy3g,344
|
|
214
229
|
together/types/beta/clusters/storage_create_params.py,sha256=RbGMXdNQrKEegvez0Ev-wZLMKHcuy-BYmRPGsmYaa5I,485
|
|
215
230
|
together/types/beta/clusters/storage_delete_response.py,sha256=U66KfWWOZpCgpQz0QriF-DF8UsTkW7d0_IeBP3kCqqU,218
|
|
216
231
|
together/types/beta/clusters/storage_list_response.py,sha256=wVyyFEGA-I9g-U9ii64tGGgIlPs0XZ9WNKwn-JbnBgc,299
|
|
217
232
|
together/types/beta/clusters/storage_update_params.py,sha256=urq_FjfZiYcmCo6qsmaVu1JG4RsOsSMYWwe_yDQ7w-A,289
|
|
233
|
+
together/types/beta/jig/__init__.py,sha256=fjYWKVDU8VnLUeU-jBdeBrf0o06YKafEXXaKSlYiA7A,1265
|
|
234
|
+
together/types/beta/jig/queue_cancel_params.py,sha256=uoLjrh6glTzUHbzS0r_fZKbdjPhZm4XWh3cBBhkwNy4,313
|
|
235
|
+
together/types/beta/jig/queue_cancel_response.py,sha256=khEsmojiaB8ctaXHGMukSX_9rwXVHthh_ZzXq9VXR-8,258
|
|
236
|
+
together/types/beta/jig/queue_metrics_params.py,sha256=OnfSkJhCOsz6y8PfT9IyJZArsOPiTr2L0LJmWMX5XGk,324
|
|
237
|
+
together/types/beta/jig/queue_metrics_response.py,sha256=B1rK4-MqA3FuqwYaut5gElphZa15GcuB9iapxrpsf7E,240
|
|
238
|
+
together/types/beta/jig/queue_retrieve_params.py,sha256=Q0XwE5mZj_Tugr3A6OhUM1L6SjDeOTA-7qk6PiHdE5g,359
|
|
239
|
+
together/types/beta/jig/queue_retrieve_response.py,sha256=9CgOmpYUtf82BLhDRLuKdyytScwbL7k8v3mXw_IY72A,836
|
|
240
|
+
together/types/beta/jig/queue_submit_params.py,sha256=GUPUcakVgU_8EqBKTgD8hS81uoMYxLZP9Q1ccaF8jto,432
|
|
241
|
+
together/types/beta/jig/queue_submit_response.py,sha256=reNflTrBRFRAYa0ypsMt94GSSqbTotYpY1S1Rb35koY,542
|
|
242
|
+
together/types/beta/jig/secret.py,sha256=UYqcIt95LvRuaZ9EOeYxYPLR_umbdPcxSNhtruKrQPY,1053
|
|
243
|
+
together/types/beta/jig/secret_create_params.py,sha256=PhNWF_OotH7wpPIkeoHPHTHq1HmwR0CGpag_DXXPbvw,908
|
|
244
|
+
together/types/beta/jig/secret_list_response.py,sha256=Be9UOPWIUJ1C528hVw6fNfhRE7LaJAazwNVzUrMuIZc,448
|
|
245
|
+
together/types/beta/jig/secret_update_params.py,sha256=4ycX8aetX5Ta7GSPtIcgFtmz0MsKmaTQLBRc_WIQvAg,862
|
|
246
|
+
together/types/beta/jig/volume.py,sha256=uljiQpfx_snfVG0oLdbA0z3-1LIIl9FMeMXjwlVxUOM,1418
|
|
247
|
+
together/types/beta/jig/volume_create_params.py,sha256=MDbQzw2z-no0dZnTrWjfbLCfuvgJr-gV2JhtBgMtC-Q,1023
|
|
248
|
+
together/types/beta/jig/volume_list_response.py,sha256=q4Q8p9geRminJygeqgZ3dAjV_4VCrqBP0Vo8y82jYLI,448
|
|
249
|
+
together/types/beta/jig/volume_update_params.py,sha256=kqMqH5hYMLHe7C5cj3_07pgL7HAEi_YCPnu-hDzWeiA,1015
|
|
218
250
|
together/types/chat/__init__.py,sha256=XuRK_yunfmDRsbxLftYqP_yl51m8hpM6iqPGJGnUx_Y,997
|
|
219
251
|
together/types/chat/chat_completion.py,sha256=0mpjMaALiX-LHSQbtwRdKmENpHcLBi_DQksT1kIM4xU,1361
|
|
220
252
|
together/types/chat/chat_completion_chunk.py,sha256=UwCs1yDwJgRSOCwyvdbyqFyOAj0eXOSg-eswk5pSn-k,1381
|
|
@@ -223,11 +255,13 @@ together/types/chat/chat_completion_structured_message_text_param.py,sha256=ogWM
|
|
|
223
255
|
together/types/chat/chat_completion_structured_message_video_url_param.py,sha256=i0VjxkE6xEYr11YBkOd2pkDSu01EiTbYjFDAkt0RE0g,504
|
|
224
256
|
together/types/chat/chat_completion_usage.py,sha256=tkDp4y7jzxFKtK3tXe_bJb7Coew-nt8u3S7bZCvcVXo,269
|
|
225
257
|
together/types/chat/chat_completion_warning.py,sha256=_Dp7YKlxyY2HeZopTvT-Go7qqKsbj3h_Vv06uLzgsTU,216
|
|
226
|
-
together/types/chat/completion_create_params.py,sha256=
|
|
258
|
+
together/types/chat/completion_create_params.py,sha256=yWvD7TlIQwnyWSnDzIPJguzsNkVlhU2ATpTLwLzP4tk,13996
|
|
227
259
|
together/types/code_interpreter/__init__.py,sha256=dAXfb3ryLMtcBalCfxxNu2wJVswVP8G1xXryZnahPQY,201
|
|
228
260
|
together/types/code_interpreter/session_list_response.py,sha256=TRxLGFTmIY-KLpStKjJtsrm4EI6BBvakpx43B6pkhnw,662
|
|
229
|
-
together
|
|
230
|
-
together
|
|
231
|
-
together-2.0.
|
|
232
|
-
together-2.0.
|
|
233
|
-
together-2.0.
|
|
261
|
+
together/types/models/__init__.py,sha256=bGEqU6ZEkv5aefMzanWiM68jrEhDIWxKtGOAStXhzk8,204
|
|
262
|
+
together/types/models/upload_status_response.py,sha256=eLZfm8JVysDUnP8wsa2uea8siuGC4uBrF3JVipniQG4,883
|
|
263
|
+
together-2.0.0a19.dist-info/METADATA,sha256=IZO2GqS6C3CWJMYw7vc4vAV7Ppuo05bJLawPoIW5PS4,21351
|
|
264
|
+
together-2.0.0a19.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
265
|
+
together-2.0.0a19.dist-info/entry_points.txt,sha256=urdkNVg6rlks26fHnWO7smiBtaZ6Vr75hlsoHSJ7TKc,51
|
|
266
|
+
together-2.0.0a19.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
|
|
267
|
+
together-2.0.0a19.dist-info/RECORD,,
|
together/resources/hardware.py
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from ..types import hardware_list_params
|
|
8
|
-
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
9
|
-
from .._utils import maybe_transform, async_maybe_transform
|
|
10
|
-
from .._compat import cached_property
|
|
11
|
-
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
12
|
-
from .._response import (
|
|
13
|
-
to_raw_response_wrapper,
|
|
14
|
-
to_streamed_response_wrapper,
|
|
15
|
-
async_to_raw_response_wrapper,
|
|
16
|
-
async_to_streamed_response_wrapper,
|
|
17
|
-
)
|
|
18
|
-
from .._base_client import make_request_options
|
|
19
|
-
from ..types.hardware_list_response import HardwareListResponse
|
|
20
|
-
|
|
21
|
-
__all__ = ["HardwareResource", "AsyncHardwareResource"]
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class HardwareResource(SyncAPIResource):
|
|
25
|
-
@cached_property
|
|
26
|
-
def with_raw_response(self) -> HardwareResourceWithRawResponse:
|
|
27
|
-
"""
|
|
28
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
29
|
-
the raw response object instead of the parsed content.
|
|
30
|
-
|
|
31
|
-
For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
|
|
32
|
-
"""
|
|
33
|
-
return HardwareResourceWithRawResponse(self)
|
|
34
|
-
|
|
35
|
-
@cached_property
|
|
36
|
-
def with_streaming_response(self) -> HardwareResourceWithStreamingResponse:
|
|
37
|
-
"""
|
|
38
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
39
|
-
|
|
40
|
-
For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
|
|
41
|
-
"""
|
|
42
|
-
return HardwareResourceWithStreamingResponse(self)
|
|
43
|
-
|
|
44
|
-
def list(
|
|
45
|
-
self,
|
|
46
|
-
*,
|
|
47
|
-
model: str | Omit = omit,
|
|
48
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
49
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
50
|
-
extra_headers: Headers | None = None,
|
|
51
|
-
extra_query: Query | None = None,
|
|
52
|
-
extra_body: Body | None = None,
|
|
53
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
54
|
-
) -> HardwareListResponse:
|
|
55
|
-
"""Returns a list of available hardware configurations for deploying models.
|
|
56
|
-
|
|
57
|
-
When a
|
|
58
|
-
model parameter is provided, it returns only hardware configurations compatible
|
|
59
|
-
with that model, including their current availability status.
|
|
60
|
-
|
|
61
|
-
Args:
|
|
62
|
-
model: Filter hardware configurations by model compatibility. When provided, the
|
|
63
|
-
response includes availability status for each compatible configuration.
|
|
64
|
-
|
|
65
|
-
extra_headers: Send extra headers
|
|
66
|
-
|
|
67
|
-
extra_query: Add additional query parameters to the request
|
|
68
|
-
|
|
69
|
-
extra_body: Add additional JSON properties to the request
|
|
70
|
-
|
|
71
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
72
|
-
"""
|
|
73
|
-
return self._get(
|
|
74
|
-
"/hardware",
|
|
75
|
-
options=make_request_options(
|
|
76
|
-
extra_headers=extra_headers,
|
|
77
|
-
extra_query=extra_query,
|
|
78
|
-
extra_body=extra_body,
|
|
79
|
-
timeout=timeout,
|
|
80
|
-
query=maybe_transform({"model": model}, hardware_list_params.HardwareListParams),
|
|
81
|
-
),
|
|
82
|
-
cast_to=HardwareListResponse,
|
|
83
|
-
)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
class AsyncHardwareResource(AsyncAPIResource):
|
|
87
|
-
@cached_property
|
|
88
|
-
def with_raw_response(self) -> AsyncHardwareResourceWithRawResponse:
|
|
89
|
-
"""
|
|
90
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
91
|
-
the raw response object instead of the parsed content.
|
|
92
|
-
|
|
93
|
-
For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
|
|
94
|
-
"""
|
|
95
|
-
return AsyncHardwareResourceWithRawResponse(self)
|
|
96
|
-
|
|
97
|
-
@cached_property
|
|
98
|
-
def with_streaming_response(self) -> AsyncHardwareResourceWithStreamingResponse:
|
|
99
|
-
"""
|
|
100
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
101
|
-
|
|
102
|
-
For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
|
|
103
|
-
"""
|
|
104
|
-
return AsyncHardwareResourceWithStreamingResponse(self)
|
|
105
|
-
|
|
106
|
-
async def list(
|
|
107
|
-
self,
|
|
108
|
-
*,
|
|
109
|
-
model: str | Omit = omit,
|
|
110
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
111
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
112
|
-
extra_headers: Headers | None = None,
|
|
113
|
-
extra_query: Query | None = None,
|
|
114
|
-
extra_body: Body | None = None,
|
|
115
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
116
|
-
) -> HardwareListResponse:
|
|
117
|
-
"""Returns a list of available hardware configurations for deploying models.
|
|
118
|
-
|
|
119
|
-
When a
|
|
120
|
-
model parameter is provided, it returns only hardware configurations compatible
|
|
121
|
-
with that model, including their current availability status.
|
|
122
|
-
|
|
123
|
-
Args:
|
|
124
|
-
model: Filter hardware configurations by model compatibility. When provided, the
|
|
125
|
-
response includes availability status for each compatible configuration.
|
|
126
|
-
|
|
127
|
-
extra_headers: Send extra headers
|
|
128
|
-
|
|
129
|
-
extra_query: Add additional query parameters to the request
|
|
130
|
-
|
|
131
|
-
extra_body: Add additional JSON properties to the request
|
|
132
|
-
|
|
133
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
134
|
-
"""
|
|
135
|
-
return await self._get(
|
|
136
|
-
"/hardware",
|
|
137
|
-
options=make_request_options(
|
|
138
|
-
extra_headers=extra_headers,
|
|
139
|
-
extra_query=extra_query,
|
|
140
|
-
extra_body=extra_body,
|
|
141
|
-
timeout=timeout,
|
|
142
|
-
query=await async_maybe_transform({"model": model}, hardware_list_params.HardwareListParams),
|
|
143
|
-
),
|
|
144
|
-
cast_to=HardwareListResponse,
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
class HardwareResourceWithRawResponse:
|
|
149
|
-
def __init__(self, hardware: HardwareResource) -> None:
|
|
150
|
-
self._hardware = hardware
|
|
151
|
-
|
|
152
|
-
self.list = to_raw_response_wrapper(
|
|
153
|
-
hardware.list,
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
class AsyncHardwareResourceWithRawResponse:
|
|
158
|
-
def __init__(self, hardware: AsyncHardwareResource) -> None:
|
|
159
|
-
self._hardware = hardware
|
|
160
|
-
|
|
161
|
-
self.list = async_to_raw_response_wrapper(
|
|
162
|
-
hardware.list,
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
class HardwareResourceWithStreamingResponse:
|
|
167
|
-
def __init__(self, hardware: HardwareResource) -> None:
|
|
168
|
-
self._hardware = hardware
|
|
169
|
-
|
|
170
|
-
self.list = to_streamed_response_wrapper(
|
|
171
|
-
hardware.list,
|
|
172
|
-
)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
class AsyncHardwareResourceWithStreamingResponse:
|
|
176
|
-
def __init__(self, hardware: AsyncHardwareResource) -> None:
|
|
177
|
-
self._hardware = hardware
|
|
178
|
-
|
|
179
|
-
self.list = async_to_streamed_response_wrapper(
|
|
180
|
-
hardware.list,
|
|
181
|
-
)
|
together/resources/jobs.py
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from .._types import Body, Query, Headers, NotGiven, not_given
|
|
8
|
-
from .._compat import cached_property
|
|
9
|
-
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
-
from .._response import (
|
|
11
|
-
to_raw_response_wrapper,
|
|
12
|
-
to_streamed_response_wrapper,
|
|
13
|
-
async_to_raw_response_wrapper,
|
|
14
|
-
async_to_streamed_response_wrapper,
|
|
15
|
-
)
|
|
16
|
-
from .._base_client import make_request_options
|
|
17
|
-
from ..types.job_list_response import JobListResponse
|
|
18
|
-
from ..types.job_retrieve_response import JobRetrieveResponse
|
|
19
|
-
|
|
20
|
-
__all__ = ["JobsResource", "AsyncJobsResource"]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class JobsResource(SyncAPIResource):
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> JobsResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return JobsResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> JobsResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return JobsResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
def retrieve(
|
|
44
|
-
self,
|
|
45
|
-
job_id: str,
|
|
46
|
-
*,
|
|
47
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
48
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
49
|
-
extra_headers: Headers | None = None,
|
|
50
|
-
extra_query: Query | None = None,
|
|
51
|
-
extra_body: Body | None = None,
|
|
52
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
53
|
-
) -> JobRetrieveResponse:
|
|
54
|
-
"""
|
|
55
|
-
Get the status of a specific job
|
|
56
|
-
|
|
57
|
-
Args:
|
|
58
|
-
extra_headers: Send extra headers
|
|
59
|
-
|
|
60
|
-
extra_query: Add additional query parameters to the request
|
|
61
|
-
|
|
62
|
-
extra_body: Add additional JSON properties to the request
|
|
63
|
-
|
|
64
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
65
|
-
"""
|
|
66
|
-
if not job_id:
|
|
67
|
-
raise ValueError(f"Expected a non-empty value for `job_id` but received {job_id!r}")
|
|
68
|
-
return self._get(
|
|
69
|
-
f"/jobs/{job_id}",
|
|
70
|
-
options=make_request_options(
|
|
71
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
72
|
-
),
|
|
73
|
-
cast_to=JobRetrieveResponse,
|
|
74
|
-
)
|
|
75
|
-
|
|
76
|
-
def list(
|
|
77
|
-
self,
|
|
78
|
-
*,
|
|
79
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
80
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
81
|
-
extra_headers: Headers | None = None,
|
|
82
|
-
extra_query: Query | None = None,
|
|
83
|
-
extra_body: Body | None = None,
|
|
84
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
85
|
-
) -> JobListResponse:
|
|
86
|
-
"""List all jobs and their statuses"""
|
|
87
|
-
return self._get(
|
|
88
|
-
"/jobs",
|
|
89
|
-
options=make_request_options(
|
|
90
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
91
|
-
),
|
|
92
|
-
cast_to=JobListResponse,
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncJobsResource(AsyncAPIResource):
|
|
97
|
-
@cached_property
|
|
98
|
-
def with_raw_response(self) -> AsyncJobsResourceWithRawResponse:
|
|
99
|
-
"""
|
|
100
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
101
|
-
the raw response object instead of the parsed content.
|
|
102
|
-
|
|
103
|
-
For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
|
|
104
|
-
"""
|
|
105
|
-
return AsyncJobsResourceWithRawResponse(self)
|
|
106
|
-
|
|
107
|
-
@cached_property
|
|
108
|
-
def with_streaming_response(self) -> AsyncJobsResourceWithStreamingResponse:
|
|
109
|
-
"""
|
|
110
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
111
|
-
|
|
112
|
-
For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
|
|
113
|
-
"""
|
|
114
|
-
return AsyncJobsResourceWithStreamingResponse(self)
|
|
115
|
-
|
|
116
|
-
async def retrieve(
|
|
117
|
-
self,
|
|
118
|
-
job_id: str,
|
|
119
|
-
*,
|
|
120
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
121
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
122
|
-
extra_headers: Headers | None = None,
|
|
123
|
-
extra_query: Query | None = None,
|
|
124
|
-
extra_body: Body | None = None,
|
|
125
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
126
|
-
) -> JobRetrieveResponse:
|
|
127
|
-
"""
|
|
128
|
-
Get the status of a specific job
|
|
129
|
-
|
|
130
|
-
Args:
|
|
131
|
-
extra_headers: Send extra headers
|
|
132
|
-
|
|
133
|
-
extra_query: Add additional query parameters to the request
|
|
134
|
-
|
|
135
|
-
extra_body: Add additional JSON properties to the request
|
|
136
|
-
|
|
137
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
138
|
-
"""
|
|
139
|
-
if not job_id:
|
|
140
|
-
raise ValueError(f"Expected a non-empty value for `job_id` but received {job_id!r}")
|
|
141
|
-
return await self._get(
|
|
142
|
-
f"/jobs/{job_id}",
|
|
143
|
-
options=make_request_options(
|
|
144
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
145
|
-
),
|
|
146
|
-
cast_to=JobRetrieveResponse,
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
async def list(
|
|
150
|
-
self,
|
|
151
|
-
*,
|
|
152
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
153
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
154
|
-
extra_headers: Headers | None = None,
|
|
155
|
-
extra_query: Query | None = None,
|
|
156
|
-
extra_body: Body | None = None,
|
|
157
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
158
|
-
) -> JobListResponse:
|
|
159
|
-
"""List all jobs and their statuses"""
|
|
160
|
-
return await self._get(
|
|
161
|
-
"/jobs",
|
|
162
|
-
options=make_request_options(
|
|
163
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
164
|
-
),
|
|
165
|
-
cast_to=JobListResponse,
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
class JobsResourceWithRawResponse:
|
|
170
|
-
def __init__(self, jobs: JobsResource) -> None:
|
|
171
|
-
self._jobs = jobs
|
|
172
|
-
|
|
173
|
-
self.retrieve = to_raw_response_wrapper(
|
|
174
|
-
jobs.retrieve,
|
|
175
|
-
)
|
|
176
|
-
self.list = to_raw_response_wrapper(
|
|
177
|
-
jobs.list,
|
|
178
|
-
)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
class AsyncJobsResourceWithRawResponse:
|
|
182
|
-
def __init__(self, jobs: AsyncJobsResource) -> None:
|
|
183
|
-
self._jobs = jobs
|
|
184
|
-
|
|
185
|
-
self.retrieve = async_to_raw_response_wrapper(
|
|
186
|
-
jobs.retrieve,
|
|
187
|
-
)
|
|
188
|
-
self.list = async_to_raw_response_wrapper(
|
|
189
|
-
jobs.list,
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
class JobsResourceWithStreamingResponse:
|
|
194
|
-
def __init__(self, jobs: JobsResource) -> None:
|
|
195
|
-
self._jobs = jobs
|
|
196
|
-
|
|
197
|
-
self.retrieve = to_streamed_response_wrapper(
|
|
198
|
-
jobs.retrieve,
|
|
199
|
-
)
|
|
200
|
-
self.list = to_streamed_response_wrapper(
|
|
201
|
-
jobs.list,
|
|
202
|
-
)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
class AsyncJobsResourceWithStreamingResponse:
|
|
206
|
-
def __init__(self, jobs: AsyncJobsResource) -> None:
|
|
207
|
-
self._jobs = jobs
|
|
208
|
-
|
|
209
|
-
self.retrieve = async_to_streamed_response_wrapper(
|
|
210
|
-
jobs.retrieve,
|
|
211
|
-
)
|
|
212
|
-
self.list = async_to_streamed_response_wrapper(
|
|
213
|
-
jobs.list,
|
|
214
|
-
)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
6
|
-
|
|
7
|
-
from pydantic import Field as FieldInfo
|
|
8
|
-
|
|
9
|
-
from .._models import BaseModel
|
|
10
|
-
|
|
11
|
-
__all__ = ["JobListResponse", "Data", "DataArgs", "DataStatusUpdate"]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class DataArgs(BaseModel):
|
|
15
|
-
description: Optional[str] = None
|
|
16
|
-
|
|
17
|
-
x_model_name: Optional[str] = FieldInfo(alias="modelName", default=None)
|
|
18
|
-
|
|
19
|
-
x_model_source: Optional[str] = FieldInfo(alias="modelSource", default=None)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class DataStatusUpdate(BaseModel):
|
|
23
|
-
message: str
|
|
24
|
-
|
|
25
|
-
status: str
|
|
26
|
-
|
|
27
|
-
timestamp: datetime
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class Data(BaseModel):
|
|
31
|
-
args: DataArgs
|
|
32
|
-
|
|
33
|
-
created_at: datetime
|
|
34
|
-
|
|
35
|
-
job_id: str
|
|
36
|
-
|
|
37
|
-
status: Literal["Queued", "Running", "Complete", "Failed"]
|
|
38
|
-
|
|
39
|
-
status_updates: List[DataStatusUpdate]
|
|
40
|
-
|
|
41
|
-
type: str
|
|
42
|
-
|
|
43
|
-
updated_at: datetime
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class JobListResponse(BaseModel):
|
|
47
|
-
data: List[Data]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|