together 2.0.0a16__py3-none-any.whl → 2.0.0a18__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.
Files changed (60) hide show
  1. together/_base_client.py +5 -2
  2. together/_client.py +1 -39
  3. together/_compat.py +3 -3
  4. together/_utils/_json.py +35 -0
  5. together/_version.py +1 -1
  6. together/lib/cli/api/endpoints/create.py +14 -8
  7. together/lib/cli/api/endpoints/hardware.py +37 -6
  8. together/lib/cli/api/models/list.py +18 -14
  9. together/lib/cli/api/models/upload.py +5 -1
  10. together/resources/__init__.py +0 -14
  11. together/resources/beta/__init__.py +14 -0
  12. together/resources/beta/beta.py +32 -0
  13. together/resources/beta/clusters/clusters.py +12 -12
  14. together/resources/beta/clusters/storage.py +10 -10
  15. together/resources/beta/jig/__init__.py +61 -0
  16. together/resources/beta/jig/jig.py +1024 -0
  17. together/resources/beta/jig/queue.py +482 -0
  18. together/resources/beta/jig/secrets.py +548 -0
  19. together/resources/beta/jig/volumes.py +514 -0
  20. together/resources/chat/completions.py +10 -0
  21. together/resources/endpoints.py +2 -2
  22. together/resources/models/__init__.py +33 -0
  23. together/resources/{models.py → models/models.py} +41 -9
  24. together/resources/models/uploads.py +163 -0
  25. together/types/__init__.py +0 -2
  26. together/types/beta/__init__.py +6 -0
  27. together/types/beta/deployment.py +261 -0
  28. together/types/beta/deployment_logs.py +11 -0
  29. together/types/beta/jig/__init__.py +20 -0
  30. together/types/beta/jig/queue_cancel_params.py +13 -0
  31. together/types/beta/jig/queue_cancel_response.py +11 -0
  32. together/types/beta/jig/queue_metrics_params.py +12 -0
  33. together/types/beta/jig/queue_metrics_response.py +8 -0
  34. together/types/beta/jig/queue_retrieve_params.py +15 -0
  35. together/types/beta/jig/queue_retrieve_response.py +35 -0
  36. together/types/beta/jig/queue_submit_params.py +19 -0
  37. together/types/beta/jig/queue_submit_response.py +25 -0
  38. together/types/beta/jig/secret.py +33 -0
  39. together/types/beta/jig/secret_create_params.py +34 -0
  40. together/types/beta/jig/secret_list_response.py +16 -0
  41. together/types/beta/jig/secret_update_params.py +34 -0
  42. together/types/beta/jig/volume.py +47 -0
  43. together/types/beta/jig/volume_create_params.py +34 -0
  44. together/types/beta/jig/volume_list_response.py +16 -0
  45. together/types/beta/jig/volume_update_params.py +34 -0
  46. together/types/beta/jig_deploy_params.py +150 -0
  47. together/types/beta/jig_list_response.py +16 -0
  48. together/types/beta/jig_retrieve_logs_params.py +15 -0
  49. together/types/beta/jig_update_params.py +141 -0
  50. together/types/chat/completion_create_params.py +11 -0
  51. together/types/endpoint_create_params.py +1 -1
  52. together/types/models/__init__.py +5 -0
  53. together/types/{job_retrieve_response.py → models/upload_status_response.py} +3 -3
  54. {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/METADATA +11 -14
  55. {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/RECORD +58 -28
  56. together/resources/jobs.py +0 -214
  57. together/types/job_list_response.py +0 -47
  58. {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/WHEEL +0 -0
  59. {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/entry_points.txt +0 -0
  60. {together-2.0.0a16.dist-info → together-2.0.0a18.dist-info}/licenses/LICENSE +0 -0
@@ -28,6 +28,7 @@ __all__ = [
28
28
  "MessageChatCompletionFunctionMessageParam",
29
29
  "FunctionCall",
30
30
  "FunctionCallName",
31
+ "Reasoning",
31
32
  "ResponseFormat",
32
33
  "ResponseFormatText",
33
34
  "ResponseFormatJsonSchema",
@@ -111,6 +112,8 @@ class CompletionCreateParamsBase(TypedDict, total=False):
111
112
  a model talking about new topics.
112
113
  """
113
114
 
115
+ reasoning: Reasoning
116
+
114
117
  reasoning_effort: Literal["low", "medium", "high"]
115
118
  """
116
119
  Controls the level of reasoning effort the model should apply when generating
@@ -314,6 +317,14 @@ class FunctionCallName(TypedDict, total=False):
314
317
  FunctionCall: TypeAlias = Union[Literal["none", "auto"], FunctionCallName]
315
318
 
316
319
 
320
+ class Reasoning(TypedDict, total=False):
321
+ enabled: bool
322
+ """
323
+ For models that support toggling reasoning functionality, this object can be
324
+ used to control that functionality.
325
+ """
326
+
327
+
317
328
  class ResponseFormatText(TypedDict, total=False):
318
329
  """Default response format. Used to generate text responses."""
319
330
 
@@ -24,7 +24,7 @@ class EndpointCreateParams(TypedDict, total=False):
24
24
  """Create the endpoint in a specified availability zone (e.g., us-central-4b)"""
25
25
 
26
26
  disable_prompt_cache: bool
27
- """Whether to disable the prompt cache for this endpoint"""
27
+ """This parameter is deprecated and no longer has any effect."""
28
28
 
29
29
  disable_speculative_decoding: bool
30
30
  """Whether to disable speculative decoding for this endpoint"""
@@ -0,0 +1,5 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .upload_status_response import UploadStatusResponse as UploadStatusResponse
@@ -6,9 +6,9 @@ from typing_extensions import Literal
6
6
 
7
7
  from pydantic import Field as FieldInfo
8
8
 
9
- from .._models import BaseModel
9
+ from ..._models import BaseModel
10
10
 
11
- __all__ = ["JobRetrieveResponse", "Args", "StatusUpdate"]
11
+ __all__ = ["UploadStatusResponse", "Args", "StatusUpdate"]
12
12
 
13
13
 
14
14
  class Args(BaseModel):
@@ -27,7 +27,7 @@ class StatusUpdate(BaseModel):
27
27
  timestamp: datetime
28
28
 
29
29
 
30
- class JobRetrieveResponse(BaseModel):
30
+ class UploadStatusResponse(BaseModel):
31
31
  args: Args
32
32
 
33
33
  created_at: datetime
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: together
3
- Version: 2.0.0a16
3
+ Version: 2.0.0a18
4
4
  Summary: The official Python library for the together API
5
5
  Project-URL: Homepage, https://github.com/togethercomputer/together-py
6
6
  Project-URL: Repository, https://github.com/togethercomputer/together-py
@@ -235,20 +235,17 @@ from together import Together
235
235
 
236
236
  client = Together()
237
237
 
238
- cluster = client.beta.clusters.create(
239
- billing_type="RESERVED",
240
- cluster_name="cluster_name",
241
- driver_version="CUDA_12_5_555",
242
- gpu_type="H100_SXM",
243
- num_gpus=0,
244
- region="us-central-8",
245
- shared_volume={
246
- "region": "region",
247
- "size_tib": 0,
248
- "volume_name": "volume_name",
249
- },
238
+ chat_completion = client.chat.completions.create(
239
+ messages=[
240
+ {
241
+ "content": "content",
242
+ "role": "system",
243
+ }
244
+ ],
245
+ model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
246
+ reasoning={},
250
247
  )
251
- print(cluster.shared_volume)
248
+ print(chat_completion.reasoning)
252
249
  ```
253
250
 
254
251
  The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
@@ -1,7 +1,7 @@
1
1
  together/__init__.py,sha256=ghwEH6EUrPERUwHVSXaCJVqS7QmLN7NsUxKJNXQrOYM,2842
2
- together/_base_client.py,sha256=KZXDmmA96Hu-YMTFtyDjSHXmoTkjjoKFyRxkkA3M2aY,73411
3
- together/_client.py,sha256=KXpNfjeUUC3StDUBR9p5yO51casqsA7NfhFVhZoVSwo,39387
4
- together/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
2
+ together/_base_client.py,sha256=GHCcpXtvG771s86xgrq236CGuR-QKdN4sqT0VUaNXHY,73660
3
+ together/_client.py,sha256=nPZ5Ff3lqWkpU9ZPquD_tV4ALi4GMat66lxoFKxcUL8,38131
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=KrBQd6trfZ-62WQZY087FReuHWQooZCvvm8x38I0PoM,169
14
+ together/_version.py,sha256=C_XN-DciOEeqZGD9PtRgKdrJy78qexWO00m-v_dHWd4,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
@@ -49,9 +50,9 @@ together/lib/cli/api/beta/clusters/storage/list.py,sha256=Pn12uJ7HhZ2MfRBeVMc8md
49
50
  together/lib/cli/api/beta/clusters/storage/retrieve.py,sha256=PnyZxZ_DKN-UNVITpOBP94y56hatbh1WOwqWYAV7eu8,772
50
51
  together/lib/cli/api/endpoints/__init__.py,sha256=wZJvqaNxQhOZ6NLctrRjR2tbf6rL14ZGHQ_w-fmmCcI,1759
51
52
  together/lib/cli/api/endpoints/availability_zones.py,sha256=DF1gxtmvhyQyIIOYw7QS00k2tDMJ1E5qPVoLu2gLBI8,766
52
- together/lib/cli/api/endpoints/create.py,sha256=Q3P5FVJDL_Xa27JXL4FA-agP9GZDU23zyV5DM1QPeQE,4821
53
+ together/lib/cli/api/endpoints/create.py,sha256=JBkYJkrsb1wI81dNqpTvl5o2JVT-zIh7v_UPOK_tsZ0,5084
53
54
  together/lib/cli/api/endpoints/delete.py,sha256=rvLcI_m5N8Mx2elNxJB4aPDuMuGmFcKaJcQO1BKauCA,447
54
- together/lib/cli/api/endpoints/hardware.py,sha256=FufyNgnKl_VjFkUlJ4QmfUGPCpXuHF4AbmQGJ3c9C3o,1521
55
+ together/lib/cli/api/endpoints/hardware.py,sha256=jLPdM4g54PJe3BhoGHpeSxJfRt_4V40OQT9l_yVT7wM,2820
55
56
  together/lib/cli/api/endpoints/list.py,sha256=EUr3p2VXNPiwED_LIzAPTmvjlpuPbAzCEGfzmCEl0mM,1734
56
57
  together/lib/cli/api/endpoints/retrieve.py,sha256=KOBQ8BHV6D36Uujm-YCZ8gli56dyyVneivh5hHpqmMY,753
57
58
  together/lib/cli/api/endpoints/start.py,sha256=H4WdoSUf1xNCW1YLTj0_rIAX7PJbJeHHXeKmpLNGWuo,821
@@ -79,8 +80,8 @@ together/lib/cli/api/fine_tuning/list_checkpoints.py,sha256=I1dFgfHTXfN7a3NvSAhn
79
80
  together/lib/cli/api/fine_tuning/list_events.py,sha256=GUVuFFpJNL_BkxYVgtLSzuhBPdrU8p8itdCf5-tPNQM,981
80
81
  together/lib/cli/api/fine_tuning/retrieve.py,sha256=IskJVcfWwxaB-0jOHZ2nrew4mozNixza9R-95psBzrY,870
81
82
  together/lib/cli/api/models/__init__.py,sha256=eITfO7XSwhdRQMUYlmVKge_lpOCmKnEGL3PhvjQlttM,234
82
- together/lib/cli/api/models/list.py,sha256=gcLh9Ek_2cPjhdiFC9T-1rnvdC6wMrEmXvo2EtsYy3Q,1593
83
- together/lib/cli/api/models/upload.py,sha256=wG4EV2WO1eFVd0hOIY9YvQF2-yMdFW4YlryUYJJAHn0,2708
83
+ together/lib/cli/api/models/list.py,sha256=W5DT-rlLvpO-X1INbES8qQTJ9PrcyIrZbQ17cG0AY8E,1796
84
+ together/lib/cli/api/models/upload.py,sha256=8ctRMNxnLLsZwRvQstMo49rDqID0cGT3gEhAalX334c,2911
84
85
  together/lib/resources/__init__.py,sha256=ystIb0pBHQLuwUBtHJwhRgtjK3_TV6K0KuM8NGuuNoU,172
85
86
  together/lib/resources/files.py,sha256=Z_D23IvjYYWBpYrfYolCNfUslJBcE4PnU0WtuLsN67M,37277
86
87
  together/lib/resources/fine_tuning.py,sha256=A-hOJqcGSPzw24wwX6K27OqV3B-u43dfdrK4nj4ItTg,13088
@@ -92,18 +93,16 @@ together/lib/utils/_log.py,sha256=mo5tDhyFTNqEj8MOcpy3bLmLBcC0OQ67orTw_nxFdcU,19
92
93
  together/lib/utils/files.py,sha256=CVTFwI7yMzpaQ-GsGr1tD4O2kXA-i369Pi0eMnlWMmI,31854
93
94
  together/lib/utils/serializer.py,sha256=wJwySGxAL0e1giZzFpl4hHH3s9lkoNN_yzu-P_jdRIo,287
94
95
  together/lib/utils/tools.py,sha256=rrpz3EXEVViou5GDPjVoCSt2zDPJYDzWYqTsVO1-OgI,2183
95
- together/resources/__init__.py,sha256=GRjbTMmep-fxfaRYWazySFcfeZBaztG_skfnsSaAb1Q,8001
96
+ together/resources/__init__.py,sha256=B3as9YhxXy-O_GxfvPlxMdQxrdPakl3HSpX9O_7YyxI,7577
96
97
  together/resources/batches.py,sha256=FTdtVrCGstua94Imd5kqPhvzTBA8MdcFXuNb9gMha8Q,15386
97
98
  together/resources/completions.py,sha256=DHTQs7PLxjwWacEtRSmB2AKat3DaWotm8vz2Z7F_WDE,41505
98
99
  together/resources/embeddings.py,sha256=7EU6DZQd0Nm0Sh7x7v37QQOLNuLqNmcjdJAyOTckeRo,7447
99
- together/resources/endpoints.py,sha256=dYdLlAJ0P7HJNhzZGxlbzEQYpUWsh35cjAMVfdWiifw,27884
100
+ together/resources/endpoints.py,sha256=-EyX1MfUoBA94JqkDPf2UkFjCzuShThLM2MnJ57gOBA,27894
100
101
  together/resources/evals.py,sha256=FPjvkbsBY5rrzLyQ-X1G9fWt2QmivI9ol5GExGtqYVA,16216
101
102
  together/resources/files.py,sha256=0paHeVqNt3NQCXoztCgFS8PEIg_-mMVto-ulHTr7GzE,16854
102
103
  together/resources/fine_tuning.py,sha256=BiCxQpdTjW5ArBufmWHNQoYY4z7Ulge8dI9GDCa5Dow,54795
103
104
  together/resources/hardware.py,sha256=xgfCmMrrwF5o1igax0JGec8RY7kkS0s4kKm62RdC3ME,6850
104
105
  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
106
  together/resources/rerank.py,sha256=Xoaco2OvKdII7AhPaJDqUqoXmJvXbTWmY4_g_aqq8dQ,8334
108
107
  together/resources/videos.py,sha256=AdcC08JrUtbcEJV-G0viH4CF1qU9oNjdjQ7U38QCEkU,14883
109
108
  together/resources/audio/__init__.py,sha256=MKUWFwFsAdCf9LrO8AiUCeIzdknPNDPr4lpAt-pkYSw,2521
@@ -112,18 +111,26 @@ together/resources/audio/speech.py,sha256=ZavAHDhi8rKzIQ0tRTv1UOIlUJQ5_ArvH3JG1J
112
111
  together/resources/audio/transcriptions.py,sha256=HtegYl2NUfx_fph-iqKkQ5GKm-3V4yQagBKueS8IIqI,13155
113
112
  together/resources/audio/translations.py,sha256=VPkg5ZUDw5LZwiaRYqEjETKwSMMU1odTeStl5PZSrls,10443
114
113
  together/resources/audio/voices.py,sha256=Lj9DtOcv_Dhaq3E5p7Oty1T_JkhrsGDZcDF91HHA3Yw,4905
115
- together/resources/beta/__init__.py,sha256=x4J4_HKYN90Yqo_2cDzTi_SGNTIPlUFNUveTlKbF3CA,1002
116
- together/resources/beta/beta.py,sha256=d6UtBwDImqbUPR572NFK9adPiiPeYKyLvp-y03NvGNk,3610
114
+ together/resources/beta/__init__.py,sha256=j_A9BJcIUHEal_qHSrNE6xZ1TioQGR7swjPCmwI-Qng,1413
115
+ together/resources/beta/beta.py,sha256=wccSBgvD_CXr6IiP69FLiv03vv31es5bWD6HACb81Do,4588
117
116
  together/resources/beta/clusters/__init__.py,sha256=lW7cWkNzotbOcP4fSnFxvKlVrq1flpN4yC4hr-vuzKE,1041
118
- together/resources/beta/clusters/clusters.py,sha256=zCrhFT_gKPogIuhMiKUE3niJyu4p6a6JUSfymcQFqdA,24963
119
- together/resources/beta/clusters/storage.py,sha256=YQwxLPB68qRTHh79isoVgQBMMKXdOW18KtkSg7xJ7FM,19087
117
+ together/resources/beta/clusters/clusters.py,sha256=XT1AwLZTErzeiIdoZmR3U6CCMf5lkRWdj5P7cne8b1A,25041
118
+ together/resources/beta/clusters/storage.py,sha256=sdla1KchRCoya_yZfF2pfhLWNwrdXEoKWuw8UBS7UlY,19237
119
+ together/resources/beta/jig/__init__.py,sha256=ZntvTFCV75uYT6wzLMpXAa4XOYa1-5ImDoUI0B9a1_s,1876
120
+ together/resources/beta/jig/jig.py,sha256=ghHOWj74Iv7ZkuJp_6xzFhkmllR_xA1X0abgv-TRNJA,40770
121
+ together/resources/beta/jig/queue.py,sha256=B_L62y8i-sFcdZLxnPCxQkKILCPoSUr6o1SqgRdQAgA,17133
122
+ together/resources/beta/jig/secrets.py,sha256=_Un3KC4iRJ8ZiOZfQeT0q23CBtYbPBxguVdKD3gMLjM,20739
123
+ together/resources/beta/jig/volumes.py,sha256=ORQmOMGOCMpOHcKeQmYedAK1VoILFEohSmWAcxTB3iI,19182
120
124
  together/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
121
125
  together/resources/chat/chat.py,sha256=aJQQ4Zlof2NlrG53auI5omXPJVdG3c_vwnEkj-ahLG4,3688
122
- together/resources/chat/completions.py,sha256=u45dEoSvgyJZ86yI3-CZzPDOVOjBi_h9ZaxXBhXZPaw,57312
126
+ together/resources/chat/completions.py,sha256=bTiqgQeiEoX5DmKZHZm2FESLDPPeZaonhJDMuGS5QCE,57952
123
127
  together/resources/code_interpreter/__init__.py,sha256=qeNVuBUuYy66RDhyh4RDx_xsf0gTMIrrZkZHpkPy9r0,1146
124
128
  together/resources/code_interpreter/code_interpreter.py,sha256=ZrWQIn5FO-uau3qTt_HhsHiaclM_ZNfOqZI_AWT2SMk,10373
125
129
  together/resources/code_interpreter/sessions.py,sha256=Sl8X6-r1gds2VHhzpjPhfwYNTciZCJxAH-YjJerA_eU,5020
126
- together/types/__init__.py,sha256=OJOudmSdr_aL6jPwLbkkQJivZHACb0wlUPAcAlHiDdQ,5210
130
+ together/resources/models/__init__.py,sha256=PgCtBXoungcmr-18vtpzZfu9P5VRiu8tshRtTCYUKl8,1015
131
+ together/resources/models/models.py,sha256=_ohtkX1i7bdzrMIeyxvSRG8JoHHKhjZ4EqaCvY15Tq4,12880
132
+ together/resources/models/uploads.py,sha256=gKq7pTDJMbAXAxWrVTUaUib39GqSvHgSCrUHEgS009Y,5884
133
+ together/types/__init__.py,sha256=ixMr-WlNrA-10YwsqTQsITNG7-8x9Hkk6aLv6MCJxe8,5066
127
134
  together/types/audio_speech_stream_chunk.py,sha256=npxlsMce0q4_VoJaZzfSh982TYTM0-j-zmhyI-9hP5o,346
128
135
  together/types/autoscaling.py,sha256=nlOvbwrsgJQsz2ALlunp9o4sRdAmLe1tinXKSBNa2Yg,447
129
136
  together/types/autoscaling_param.py,sha256=GNyqO4jV5zQie2BmOjfwpESxJ9IyVcz6p9wAxGIf6F0,544
@@ -139,7 +146,7 @@ together/types/completion_create_params.py,sha256=IxnGl1I_7sJl5rW57DwJfA74-nEnJT
139
146
  together/types/dedicated_endpoint.py,sha256=eZx8Arh3WEWpsFciws0CF7Z2RlWw5wKiA6NIPtcCrZY,1147
140
147
  together/types/embedding.py,sha256=ThcALXoTfDPptcFikqfUjDkBTHk3diJtYJ4hXYQOVHk,413
141
148
  together/types/embedding_create_params.py,sha256=6FEUFFRj3EQ7_3T8qjjCpfpA1YWzcpcO259db5koNCo,913
142
- together/types/endpoint_create_params.py,sha256=GnfrwDdtGTJjSrPgE8lxRz4Hfql8DMVBRAnY6gSmLVo,1311
149
+ together/types/endpoint_create_params.py,sha256=-9rL6FvjMBJGquBG4kTpJ7j0Ot7nkE3srr44-W_f8uc,1316
143
150
  together/types/endpoint_list_avzones_response.py,sha256=LbzRkG7snD7Swy-t0E0MLXrlU-utn_N9qPwjPkr8jT4,303
144
151
  together/types/endpoint_list_params.py,sha256=83Mg5beLYX_ipn1X_izk7hDIO8q8YNEL-tjsv5AcNXo,506
145
152
  together/types/endpoint_list_response.py,sha256=LPyv8np_HctSW0QKstC8k7vF0RAejb6X9N2JowZtaEY,1010
@@ -177,8 +184,6 @@ together/types/image_data_b64.py,sha256=pLY7JDBb1HF1T29ACbae_xn6JQfttpqQVeG_jJee
177
184
  together/types/image_data_url.py,sha256=6A_EYNfcR6Z6sZkyC4MThxeZnK2cvTuQn6-A1dXM85w,274
178
185
  together/types/image_file.py,sha256=sADh0UcrGlemkreIvHBEBizstAvt64CVOu7KtOALcHk,569
179
186
  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
187
  together/types/log_probs.py,sha256=A1DD9Cdb5G7bufrBiaMZC4HJ7v1NH5_zFEYvLgFY1NI,473
183
188
  together/types/model_list_params.py,sha256=W1S2NtMJOsGGYo1Y01foP6BUYjovMgk7jOU6a3Yo4p8,319
184
189
  together/types/model_list_response.py,sha256=MvJLqK_tczrk8kCijb0HChLs706_pXJdf1EJgslON2w,273
@@ -202,19 +207,42 @@ together/types/audio/transcription_create_response.py,sha256=z8_pzJlzYjP4QxJhwbK
202
207
  together/types/audio/translation_create_params.py,sha256=6-iHFC2K2o72K5tj0lfD-Lb69JzV4_5t_x2sdj2Pafs,1232
203
208
  together/types/audio/translation_create_response.py,sha256=T6SUCExVMin1qSGamHuiWGWS84MZ92tZPBHD7NYm4IU,1843
204
209
  together/types/audio/voice_list_response.py,sha256=vS2yvGBz7U2cxnJkEr7BewT7j5ActDjn99k3QhhEKk4,517
205
- together/types/beta/__init__.py,sha256=RAasVz0AMEdhf8FlzbsSJ4gm3wp4Ir1Yw3KJOg9M2II,581
210
+ together/types/beta/__init__.py,sha256=A61EgVZ0h9nvVydlFkcujGkntxPk79DzT00qnVlooFo,975
206
211
  together/types/beta/cluster.py,sha256=QE0KMFrKikFbz5lZytvGqai9IBPAr_3PC_kqZd4yCcA,1636
207
212
  together/types/beta/cluster_create_params.py,sha256=HwAsWvvhhTyLiAzGk7yo15bNredUUANR4yvnjYj-h5Y,1500
208
213
  together/types/beta/cluster_delete_response.py,sha256=rQ3dxuhlCqiuJBaVUUH51tNOkT6Xl-gnp0rRUxI6fOo,219
209
214
  together/types/beta/cluster_list_regions_response.py,sha256=QzRO4ns6nrZvMcdTKF9Tjk7wcjXvYMQgiRztLIkEzxQ,391
210
215
  together/types/beta/cluster_list_response.py,sha256=Vctdf-x12g1Y4vJHJ06GFCBXKaVdU6m8Pyb9OV8IM1Q,277
211
216
  together/types/beta/cluster_update_params.py,sha256=C3OIOG1IyjV4_UeH24rzVbYAmSJiBT0Hs5bb3lXZCcU,328
217
+ together/types/beta/deployment.py,sha256=yJJZsyG--a52Gm1bys0cTt_qAoW1K0qif8FEhTRI70I,8017
218
+ together/types/beta/deployment_logs.py,sha256=2YMNvQQkc45Is_BpkBYANDxcp30KgKy30sGH1ax4-sk,258
219
+ together/types/beta/jig_deploy_params.py,sha256=Hp7-mNIVrWxDxdG1PHcXp0FMFGbB0UWMfZ4VY3DZkzw,4181
220
+ together/types/beta/jig_list_response.py,sha256=hbAeOW_7D5b6m-2tPnXrYmmEk8Rup-Gzp8lvnklMoQA,457
221
+ together/types/beta/jig_retrieve_logs_params.py,sha256=lSPKMpK8rf2IlY3zNVwa_da5MSFid33CyfXFw-nrLAw,380
222
+ together/types/beta/jig_update_params.py,sha256=_W-eszmO59hr55GCCHHr5ylSQtbGb5Qg_cmRHQqrL74,3896
212
223
  together/types/beta/clusters/__init__.py,sha256=lQZ_CtOtxPVEFjzZVcA23QL03OAHy1nhkoHMEaRof58,503
213
224
  together/types/beta/clusters/cluster_storage.py,sha256=LyQuFNZfypsXITxnJaPmo-YlgnTJ1Nj8rSAWj4HVy3g,344
214
225
  together/types/beta/clusters/storage_create_params.py,sha256=RbGMXdNQrKEegvez0Ev-wZLMKHcuy-BYmRPGsmYaa5I,485
215
226
  together/types/beta/clusters/storage_delete_response.py,sha256=U66KfWWOZpCgpQz0QriF-DF8UsTkW7d0_IeBP3kCqqU,218
216
227
  together/types/beta/clusters/storage_list_response.py,sha256=wVyyFEGA-I9g-U9ii64tGGgIlPs0XZ9WNKwn-JbnBgc,299
217
228
  together/types/beta/clusters/storage_update_params.py,sha256=urq_FjfZiYcmCo6qsmaVu1JG4RsOsSMYWwe_yDQ7w-A,289
229
+ together/types/beta/jig/__init__.py,sha256=fjYWKVDU8VnLUeU-jBdeBrf0o06YKafEXXaKSlYiA7A,1265
230
+ together/types/beta/jig/queue_cancel_params.py,sha256=uoLjrh6glTzUHbzS0r_fZKbdjPhZm4XWh3cBBhkwNy4,313
231
+ together/types/beta/jig/queue_cancel_response.py,sha256=khEsmojiaB8ctaXHGMukSX_9rwXVHthh_ZzXq9VXR-8,258
232
+ together/types/beta/jig/queue_metrics_params.py,sha256=OnfSkJhCOsz6y8PfT9IyJZArsOPiTr2L0LJmWMX5XGk,324
233
+ together/types/beta/jig/queue_metrics_response.py,sha256=B1rK4-MqA3FuqwYaut5gElphZa15GcuB9iapxrpsf7E,240
234
+ together/types/beta/jig/queue_retrieve_params.py,sha256=Q0XwE5mZj_Tugr3A6OhUM1L6SjDeOTA-7qk6PiHdE5g,359
235
+ together/types/beta/jig/queue_retrieve_response.py,sha256=9CgOmpYUtf82BLhDRLuKdyytScwbL7k8v3mXw_IY72A,836
236
+ together/types/beta/jig/queue_submit_params.py,sha256=GUPUcakVgU_8EqBKTgD8hS81uoMYxLZP9Q1ccaF8jto,432
237
+ together/types/beta/jig/queue_submit_response.py,sha256=reNflTrBRFRAYa0ypsMt94GSSqbTotYpY1S1Rb35koY,542
238
+ together/types/beta/jig/secret.py,sha256=UYqcIt95LvRuaZ9EOeYxYPLR_umbdPcxSNhtruKrQPY,1053
239
+ together/types/beta/jig/secret_create_params.py,sha256=PhNWF_OotH7wpPIkeoHPHTHq1HmwR0CGpag_DXXPbvw,908
240
+ together/types/beta/jig/secret_list_response.py,sha256=Be9UOPWIUJ1C528hVw6fNfhRE7LaJAazwNVzUrMuIZc,448
241
+ together/types/beta/jig/secret_update_params.py,sha256=4ycX8aetX5Ta7GSPtIcgFtmz0MsKmaTQLBRc_WIQvAg,862
242
+ together/types/beta/jig/volume.py,sha256=uljiQpfx_snfVG0oLdbA0z3-1LIIl9FMeMXjwlVxUOM,1418
243
+ together/types/beta/jig/volume_create_params.py,sha256=MDbQzw2z-no0dZnTrWjfbLCfuvgJr-gV2JhtBgMtC-Q,1023
244
+ together/types/beta/jig/volume_list_response.py,sha256=q4Q8p9geRminJygeqgZ3dAjV_4VCrqBP0Vo8y82jYLI,448
245
+ together/types/beta/jig/volume_update_params.py,sha256=kqMqH5hYMLHe7C5cj3_07pgL7HAEi_YCPnu-hDzWeiA,1015
218
246
  together/types/chat/__init__.py,sha256=XuRK_yunfmDRsbxLftYqP_yl51m8hpM6iqPGJGnUx_Y,997
219
247
  together/types/chat/chat_completion.py,sha256=0mpjMaALiX-LHSQbtwRdKmENpHcLBi_DQksT1kIM4xU,1361
220
248
  together/types/chat/chat_completion_chunk.py,sha256=UwCs1yDwJgRSOCwyvdbyqFyOAj0eXOSg-eswk5pSn-k,1381
@@ -223,11 +251,13 @@ together/types/chat/chat_completion_structured_message_text_param.py,sha256=ogWM
223
251
  together/types/chat/chat_completion_structured_message_video_url_param.py,sha256=i0VjxkE6xEYr11YBkOd2pkDSu01EiTbYjFDAkt0RE0g,504
224
252
  together/types/chat/chat_completion_usage.py,sha256=tkDp4y7jzxFKtK3tXe_bJb7Coew-nt8u3S7bZCvcVXo,269
225
253
  together/types/chat/chat_completion_warning.py,sha256=_Dp7YKlxyY2HeZopTvT-Go7qqKsbj3h_Vv06uLzgsTU,216
226
- together/types/chat/completion_create_params.py,sha256=GpOQIpL2hODOV-iPoilHxo5UYP_KHJ-zdZMP-VW87-g,13755
254
+ together/types/chat/completion_create_params.py,sha256=yWvD7TlIQwnyWSnDzIPJguzsNkVlhU2ATpTLwLzP4tk,13996
227
255
  together/types/code_interpreter/__init__.py,sha256=dAXfb3ryLMtcBalCfxxNu2wJVswVP8G1xXryZnahPQY,201
228
256
  together/types/code_interpreter/session_list_response.py,sha256=TRxLGFTmIY-KLpStKjJtsrm4EI6BBvakpx43B6pkhnw,662
229
- together-2.0.0a16.dist-info/METADATA,sha256=0VoI6xgnRwNl5aE1rHBnfLNf6ZaWw8fTBvokjshDkWY,21255
230
- together-2.0.0a16.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
231
- together-2.0.0a16.dist-info/entry_points.txt,sha256=urdkNVg6rlks26fHnWO7smiBtaZ6Vr75hlsoHSJ7TKc,51
232
- together-2.0.0a16.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
233
- together-2.0.0a16.dist-info/RECORD,,
257
+ together/types/models/__init__.py,sha256=bGEqU6ZEkv5aefMzanWiM68jrEhDIWxKtGOAStXhzk8,204
258
+ together/types/models/upload_status_response.py,sha256=eLZfm8JVysDUnP8wsa2uea8siuGC4uBrF3JVipniQG4,883
259
+ together-2.0.0a18.dist-info/METADATA,sha256=4pTbDejzU_bjPLY6yuBUDcj2CNOAo9RdXls5Vq1ed-g,21169
260
+ together-2.0.0a18.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
261
+ together-2.0.0a18.dist-info/entry_points.txt,sha256=urdkNVg6rlks26fHnWO7smiBtaZ6Vr75hlsoHSJ7TKc,51
262
+ together-2.0.0a18.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
263
+ together-2.0.0a18.dist-info/RECORD,,
@@ -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]