together 2.0.0a15__py3-none-any.whl → 2.0.0a16__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 (81) hide show
  1. together/_base_client.py +134 -11
  2. together/_client.py +7 -0
  3. together/_models.py +16 -1
  4. together/_types.py +9 -0
  5. together/_version.py +1 -1
  6. together/constants.py +1 -1
  7. together/error.py +1 -2
  8. together/lib/_google_colab.py +39 -0
  9. together/lib/cli/__init__.py +73 -0
  10. together/lib/cli/api/beta/clusters/__init__.py +47 -0
  11. together/lib/cli/api/beta/{clusters.py → clusters/create.py} +5 -179
  12. together/lib/cli/api/beta/clusters/delete.py +35 -0
  13. together/lib/cli/api/beta/clusters/get_credentials.py +151 -0
  14. together/lib/cli/api/beta/clusters/list.py +24 -0
  15. together/lib/cli/api/beta/clusters/list_regions.py +37 -0
  16. together/lib/cli/api/beta/clusters/retrieve.py +31 -0
  17. together/lib/cli/api/beta/clusters/storage/__init__.py +19 -0
  18. together/lib/cli/api/beta/clusters/storage/create.py +49 -0
  19. together/lib/cli/api/beta/clusters/storage/delete.py +38 -0
  20. together/lib/cli/api/beta/clusters/storage/list.py +42 -0
  21. together/lib/cli/api/beta/clusters/storage/retrieve.py +34 -0
  22. together/lib/cli/api/beta/clusters/update.py +54 -0
  23. together/lib/cli/api/endpoints/__init__.py +56 -0
  24. together/lib/cli/api/endpoints/availability_zones.py +26 -0
  25. together/lib/cli/api/endpoints/create.py +159 -0
  26. together/lib/cli/api/endpoints/delete.py +15 -0
  27. together/lib/cli/api/endpoints/hardware.py +40 -0
  28. together/lib/cli/api/endpoints/list.py +66 -0
  29. together/lib/cli/api/endpoints/retrieve.py +23 -0
  30. together/lib/cli/api/endpoints/start.py +25 -0
  31. together/lib/cli/api/endpoints/stop.py +25 -0
  32. together/lib/cli/api/endpoints/update.py +77 -0
  33. together/lib/cli/api/evals/__init__.py +19 -0
  34. together/lib/cli/api/{evals.py → evals/create.py} +6 -129
  35. together/lib/cli/api/evals/list.py +58 -0
  36. together/lib/cli/api/evals/retrieve.py +21 -0
  37. together/lib/cli/api/evals/status.py +20 -0
  38. together/lib/cli/api/files/__init__.py +23 -0
  39. together/lib/cli/api/files/check.py +21 -0
  40. together/lib/cli/api/files/delete.py +20 -0
  41. together/lib/cli/api/files/list.py +34 -0
  42. together/lib/cli/api/files/retrieve.py +20 -0
  43. together/lib/cli/api/files/retrieve_content.py +25 -0
  44. together/lib/cli/api/files/upload.py +38 -0
  45. together/lib/cli/api/fine_tuning/__init__.py +27 -0
  46. together/lib/cli/api/fine_tuning/cancel.py +28 -0
  47. together/lib/cli/api/{fine_tuning.py → fine_tuning/create.py} +5 -257
  48. together/lib/cli/api/fine_tuning/delete.py +29 -0
  49. together/lib/cli/api/fine_tuning/download.py +94 -0
  50. together/lib/cli/api/fine_tuning/list.py +44 -0
  51. together/lib/cli/api/fine_tuning/list_checkpoints.py +42 -0
  52. together/lib/cli/api/fine_tuning/list_events.py +35 -0
  53. together/lib/cli/api/fine_tuning/retrieve.py +27 -0
  54. together/lib/cli/api/models/__init__.py +15 -0
  55. together/lib/cli/api/models/list.py +51 -0
  56. together/lib/cli/api/{models.py → models/upload.py} +4 -51
  57. together/resources/beta/clusters/clusters.py +36 -28
  58. together/resources/beta/clusters/storage.py +30 -21
  59. together/types/__init__.py +4 -3
  60. together/types/beta/__init__.py +0 -2
  61. together/types/beta/cluster_create_params.py +3 -3
  62. together/types/beta/clusters/__init__.py +0 -1
  63. together/types/beta/clusters/cluster_storage.py +4 -0
  64. together/types/chat_completions.py +1 -1
  65. together/types/endpoints.py +1 -1
  66. {together-2.0.0a15.dist-info → together-2.0.0a16.dist-info}/METADATA +4 -2
  67. {together-2.0.0a15.dist-info → together-2.0.0a16.dist-info}/RECORD +72 -36
  68. together-2.0.0a16.dist-info/entry_points.txt +2 -0
  69. together/lib/cli/api/__init__.py +0 -0
  70. together/lib/cli/api/beta/clusters_storage.py +0 -152
  71. together/lib/cli/api/endpoints.py +0 -467
  72. together/lib/cli/api/files.py +0 -133
  73. together/lib/cli/cli.py +0 -73
  74. together/types/beta/cluster_create_response.py +0 -9
  75. together/types/beta/cluster_update_response.py +0 -9
  76. together/types/beta/clusters/storage_create_response.py +0 -9
  77. together-2.0.0a15.dist-info/entry_points.txt +0 -2
  78. /together/lib/cli/api/{utils.py → _utils.py} +0 -0
  79. /together/lib/cli/api/beta/{beta.py → __init__.py} +0 -0
  80. {together-2.0.0a15.dist-info → together-2.0.0a16.dist-info}/WHEEL +0 -0
  81. {together-2.0.0a15.dist-info → together-2.0.0a16.dist-info}/licenses/LICENSE +0 -0
@@ -1,19 +1,19 @@
1
1
  together/__init__.py,sha256=ghwEH6EUrPERUwHVSXaCJVqS7QmLN7NsUxKJNXQrOYM,2842
2
- together/_base_client.py,sha256=U6Lhqesx9l1qhaYKaP2jR-_mIyqbNhAOo2r2bgTQegI,67249
3
- together/_client.py,sha256=SdKbatStb_gD9PQ1VFVs8_njHi7XJLOsiTjiloL4R1Q,39056
2
+ together/_base_client.py,sha256=KZXDmmA96Hu-YMTFtyDjSHXmoTkjjoKFyRxkkA3M2aY,73411
3
+ together/_client.py,sha256=KXpNfjeUUC3StDUBR9p5yO51casqsA7NfhFVhZoVSwo,39387
4
4
  together/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
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
8
- together/_models.py,sha256=3D65psj_C02Mw0K2zpBWrn1khmrvtEXgTTQ6P4r3tUY,31837
8
+ together/_models.py,sha256=R3MpO2z4XhTAnD3ObEks32suRXleF1g7BEgQTOLIxTs,32112
9
9
  together/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
10
  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
- together/_types.py,sha256=LzaeqN09mUAEvRg_XrLzihdOaW0D_R9qrG7jKsFjnQY,7297
14
- together/_version.py,sha256=P0JKaP9hXRQvFGEJXn_3phiGCQgJzd5eS9uyqvDXvis,169
15
- together/constants.py,sha256=stG63GqzAVgq1701eqcD53tfNsQ6ZRi5cUvdYn8qS0g,1304
16
- together/error.py,sha256=49MjRZcbVP0RXYfd2pwWd7ZRcO_xX0h18WISkU9BcTk,452
13
+ together/_types.py,sha256=6XJrgQABAp4xUfdSwlKJ3gAG0eRQHG92TwqqxgLh_tI,7596
14
+ together/_version.py,sha256=KrBQd6trfZ-62WQZY087FReuHWQooZCvvm8x38I0PoM,169
15
+ together/constants.py,sha256=U1SgiirDQMiT5XvyrGcnNxPKlFmWeKq3TGkWLtB705w,1305
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
@@ -29,19 +29,58 @@ together/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,47
29
29
  together/_utils/_utils.py,sha256=g9ftElB09kVT6EVfCIlD_nUfANhDX5_vZO61FDWoIQI,12334
30
30
  together/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
31
31
  together/lib/__init__.py,sha256=Qtdi6geFNzxE-F51eNDk1ESXYyYDt8b82MR1POANQBQ,394
32
+ together/lib/_google_colab.py,sha256=_-fqTU1NY2XfKttGjCH_b47W8g9xVIuQgcjn44STbVw,1338
32
33
  together/lib/constants.py,sha256=w8-zVl8XZiJxqMdhbWekigHJ0JUMPoV9R3ejUHIcUJk,2237
33
- together/lib/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- together/lib/cli/cli.py,sha256=BYoWSu5FGedL5FMpO4-4e14Cbc6_X2Y1tItUjdTcMpY,2010
35
- together/lib/cli/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- together/lib/cli/api/endpoints.py,sha256=MyliUrTuJWw2qFd80J27pFs9xTazIVAP0mqgRYxdVsw,14851
37
- together/lib/cli/api/evals.py,sha256=KkSvz2wIYmPQ3sFQBte6inNBZt1aptIkMVL5TKWTW5k,19074
38
- together/lib/cli/api/files.py,sha256=HbflC45PpzBIF0CE0TLucQaVr319ScL05VyAFKf2T6Y,3596
39
- together/lib/cli/api/fine_tuning.py,sha256=Tb4J9_LnHZHp73zNW1lHNSl_0UQfOd0yi9-IvMHBY08,22863
40
- together/lib/cli/api/models.py,sha256=Jfrl7gcbWAkbBQ1i1gCy485HHT2C4C784OMaaHZPiPw,4084
41
- together/lib/cli/api/utils.py,sha256=r7Aifi6KdzqwlQrHLVrAeYp54EvU7HS07VNkE_DCmA8,5749
42
- together/lib/cli/api/beta/beta.py,sha256=JA9dJVuqFmoqUyM6Rx4sqfrmQWjEEaHQ9xjmlL908U0,173
43
- together/lib/cli/api/beta/clusters.py,sha256=yDV1ut09OtUn4XrilAfaKWhtlMbW99FsuYXTgJl2dao,11427
44
- together/lib/cli/api/beta/clusters_storage.py,sha256=ydVLsylsQIEyaKAURS-NDmyUtuRaeIl3Vn-0mCA4PdQ,3804
34
+ together/lib/cli/__init__.py,sha256=zXBNfMDUsWMUVN7FgKNRzzZHpq8EjpdfR9carjCFtog,2005
35
+ together/lib/cli/api/_utils.py,sha256=r7Aifi6KdzqwlQrHLVrAeYp54EvU7HS07VNkE_DCmA8,5749
36
+ together/lib/cli/api/beta/__init__.py,sha256=JA9dJVuqFmoqUyM6Rx4sqfrmQWjEEaHQ9xjmlL908U0,173
37
+ together/lib/cli/api/beta/clusters/__init__.py,sha256=1i0jKTNS2dM9646Ph1By4fCSAU8ZzPbn6baRfYQnnXw,1256
38
+ together/lib/cli/api/beta/clusters/create.py,sha256=M7Fg2aAaba_vRUNOpF9gnMnWDM8JO1_nyOsUtyiFt0o,6671
39
+ together/lib/cli/api/beta/clusters/delete.py,sha256=BpLgzNZbU8nl2DK4W_OvVcr1IaVb5_5K-PfFtxx5OUs,1034
40
+ together/lib/cli/api/beta/clusters/get_credentials.py,sha256=N0EA4182Oq9hrB6h24yBDLJdzrAy2vNIti9m1oekDHo,5532
41
+ together/lib/cli/api/beta/clusters/list.py,sha256=5Zefe9bM-0v61aopOwDOlxNTByXsfybFRfHu9PUpiMc,499
42
+ together/lib/cli/api/beta/clusters/list_regions.py,sha256=I3g32rCNYscr2cjuh3U-RKdw3DCRKXqBLjoPpWJzPoQ,1107
43
+ together/lib/cli/api/beta/clusters/retrieve.py,sha256=rNszDap6SBl70DbWWJEO66WXdHbF1rWX_QFBk6ltxzY,749
44
+ together/lib/cli/api/beta/clusters/update.py,sha256=ZxxP8XBaNCFznAT7TmN_ogYeo8ew1KBNzAnkrzS0ALw,1325
45
+ together/lib/cli/api/beta/clusters/storage/__init__.py,sha256=RMPMzFwVdnMu5Fxgf4cmZcWKczQG5_RVB_vkxORac74,363
46
+ together/lib/cli/api/beta/clusters/storage/create.py,sha256=03JaXRsDxcLbCDxX4-8itX8o8rfTvGhaiK9PoUEEyXM,1129
47
+ together/lib/cli/api/beta/clusters/storage/delete.py,sha256=KSuCPG-KOZUZX1BlApksiELvicZD2hdl-uUumxjz4JA,1082
48
+ together/lib/cli/api/beta/clusters/storage/list.py,sha256=Pn12uJ7HhZ2MfRBeVMc8mdaB938JXqvKuKxHTzL3zlc,1076
49
+ together/lib/cli/api/beta/clusters/storage/retrieve.py,sha256=PnyZxZ_DKN-UNVITpOBP94y56hatbh1WOwqWYAV7eu8,772
50
+ together/lib/cli/api/endpoints/__init__.py,sha256=wZJvqaNxQhOZ6NLctrRjR2tbf6rL14ZGHQ_w-fmmCcI,1759
51
+ 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/delete.py,sha256=rvLcI_m5N8Mx2elNxJB4aPDuMuGmFcKaJcQO1BKauCA,447
54
+ together/lib/cli/api/endpoints/hardware.py,sha256=FufyNgnKl_VjFkUlJ4QmfUGPCpXuHF4AbmQGJ3c9C3o,1521
55
+ together/lib/cli/api/endpoints/list.py,sha256=EUr3p2VXNPiwED_LIzAPTmvjlpuPbAzCEGfzmCEl0mM,1734
56
+ together/lib/cli/api/endpoints/retrieve.py,sha256=KOBQ8BHV6D36Uujm-YCZ8gli56dyyVneivh5hHpqmMY,753
57
+ together/lib/cli/api/endpoints/start.py,sha256=H4WdoSUf1xNCW1YLTj0_rIAX7PJbJeHHXeKmpLNGWuo,821
58
+ together/lib/cli/api/endpoints/stop.py,sha256=NNsqEESvRLmbNKwVAx9JHEr3Ypwg88w4zK9GRMWmFtk,817
59
+ together/lib/cli/api/endpoints/update.py,sha256=FsU0e4wC9YGGTZd_FVFFSzEIEVi8b08U-JoAkYT8Ihs,2361
60
+ together/lib/cli/api/evals/__init__.py,sha256=gMUOFz1dhZdZKuk1iHMaWpAPpQHpTvPScacMJAj5i2U,342
61
+ together/lib/cli/api/evals/create.py,sha256=93avigFda2-q1FO_wZV67p_lY-6LkucqM_fOMriMn6Y,15516
62
+ together/lib/cli/api/evals/list.py,sha256=HdNykMS_iarC_u6963wiQ_roHKjiIKg9Z8Wj1eqsnaU,1633
63
+ together/lib/cli/api/evals/retrieve.py,sha256=1SapZXcKgJvsz2hYHgZnfaYLegrNYAYpPOlfIjW0RjY,607
64
+ together/lib/cli/api/evals/status.py,sha256=rBXn-WHUH_AGEP8RwEwoCqW17B7jKeAwdghrXNlYBJs,527
65
+ together/lib/cli/api/files/__init__.py,sha256=JwMzEzuFB58RDFoRQhGMgfYl12s-2IF082c5lUfytIY,474
66
+ together/lib/cli/api/files/check.py,sha256=0XOHofo4-diqAF1AlubzX9dftnOTWLjnW6bu5jYHMH0,442
67
+ together/lib/cli/api/files/delete.py,sha256=Scgs47JXX4b8SZYNhhgaI-RhZ7psMK9k0cAlqJg-SFg,460
68
+ together/lib/cli/api/files/list.py,sha256=8e19El5il3BoUSvGWje7stpTAZHM_bIUqGB1C3t-ip4,1030
69
+ together/lib/cli/api/files/retrieve.py,sha256=Z6pGY7TPEyUtrkxBOvrmQGECl8q8jV8MJ3Vg52UoMKM,457
70
+ together/lib/cli/api/files/retrieve_content.py,sha256=hF_Ir5RNDFLyOp96U7xXuWsS_WYHPnr1HpMCtQOOmBs,689
71
+ together/lib/cli/api/files/upload.py,sha256=MI64xbMVv5mqYbThTYa2DUENQWgAQuFia3xylsPZpVM,1058
72
+ together/lib/cli/api/fine_tuning/__init__.py,sha256=Swb4ivpbvyKPus36ZEbL2cPqPlHokbHmOU2bGxkvRZk,682
73
+ together/lib/cli/api/fine_tuning/cancel.py,sha256=HWkfQNsiub2RvNWJ0RBuZBWtv_C6y-DFXmXftktsurE,1050
74
+ together/lib/cli/api/fine_tuning/create.py,sha256=7N89MfjEBgejtzJTzf2CfUuB_m1bx4u9nYJBN6UUWV4,13860
75
+ together/lib/cli/api/fine_tuning/delete.py,sha256=vUGIGQxrNzhyNfYCUm4E5CAtHhIbxfGKEkI8E4MnSzc,1025
76
+ together/lib/cli/api/fine_tuning/download.py,sha256=08icXHGCWAym4Efv1Wj04AYaullS1dtDU2arQavy0kM,3154
77
+ together/lib/cli/api/fine_tuning/list.py,sha256=m05xce6letRaEqo_KB8rJ3tgz7AhYkqYrV51_wwy4I0,1529
78
+ together/lib/cli/api/fine_tuning/list_checkpoints.py,sha256=I1dFgfHTXfN7a3NvSAhnjvZWTcp64LcsUKqFOIqh7Jg,1418
79
+ together/lib/cli/api/fine_tuning/list_events.py,sha256=GUVuFFpJNL_BkxYVgtLSzuhBPdrU8p8itdCf5-tPNQM,981
80
+ together/lib/cli/api/fine_tuning/retrieve.py,sha256=IskJVcfWwxaB-0jOHZ2nrew4mozNixza9R-95psBzrY,870
81
+ 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
45
84
  together/lib/resources/__init__.py,sha256=ystIb0pBHQLuwUBtHJwhRgtjK3_TV6K0KuM8NGuuNoU,172
46
85
  together/lib/resources/files.py,sha256=Z_D23IvjYYWBpYrfYolCNfUslJBcE4PnU0WtuLsN67M,37277
47
86
  together/lib/resources/fine_tuning.py,sha256=A-hOJqcGSPzw24wwX6K27OqV3B-u43dfdrK4nj4ItTg,13088
@@ -76,15 +115,15 @@ together/resources/audio/voices.py,sha256=Lj9DtOcv_Dhaq3E5p7Oty1T_JkhrsGDZcDF91H
76
115
  together/resources/beta/__init__.py,sha256=x4J4_HKYN90Yqo_2cDzTi_SGNTIPlUFNUveTlKbF3CA,1002
77
116
  together/resources/beta/beta.py,sha256=d6UtBwDImqbUPR572NFK9adPiiPeYKyLvp-y03NvGNk,3610
78
117
  together/resources/beta/clusters/__init__.py,sha256=lW7cWkNzotbOcP4fSnFxvKlVrq1flpN4yC4hr-vuzKE,1041
79
- together/resources/beta/clusters/clusters.py,sha256=XU_Xp4i2q5Llj7nvSAgscsL8AuQoRNGxL235cw1f_YE,24423
80
- together/resources/beta/clusters/storage.py,sha256=79wtOoIkQP9Uch_gTfoAzprZhOSF9QxfdGREFTS_08E,18243
118
+ together/resources/beta/clusters/clusters.py,sha256=zCrhFT_gKPogIuhMiKUE3niJyu4p6a6JUSfymcQFqdA,24963
119
+ together/resources/beta/clusters/storage.py,sha256=YQwxLPB68qRTHh79isoVgQBMMKXdOW18KtkSg7xJ7FM,19087
81
120
  together/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
82
121
  together/resources/chat/chat.py,sha256=aJQQ4Zlof2NlrG53auI5omXPJVdG3c_vwnEkj-ahLG4,3688
83
122
  together/resources/chat/completions.py,sha256=u45dEoSvgyJZ86yI3-CZzPDOVOjBi_h9ZaxXBhXZPaw,57312
84
123
  together/resources/code_interpreter/__init__.py,sha256=qeNVuBUuYy66RDhyh4RDx_xsf0gTMIrrZkZHpkPy9r0,1146
85
124
  together/resources/code_interpreter/code_interpreter.py,sha256=ZrWQIn5FO-uau3qTt_HhsHiaclM_ZNfOqZI_AWT2SMk,10373
86
125
  together/resources/code_interpreter/sessions.py,sha256=Sl8X6-r1gds2VHhzpjPhfwYNTciZCJxAH-YjJerA_eU,5020
87
- together/types/__init__.py,sha256=jLekFqaxSa4kUXhNgOtelgmVcliTUAQBHQtZeftIrCE,5208
126
+ together/types/__init__.py,sha256=OJOudmSdr_aL6jPwLbkkQJivZHACb0wlUPAcAlHiDdQ,5210
88
127
  together/types/audio_speech_stream_chunk.py,sha256=npxlsMce0q4_VoJaZzfSh982TYTM0-j-zmhyI-9hP5o,346
89
128
  together/types/autoscaling.py,sha256=nlOvbwrsgJQsz2ALlunp9o4sRdAmLe1tinXKSBNa2Yg,447
90
129
  together/types/autoscaling_param.py,sha256=GNyqO4jV5zQie2BmOjfwpESxJ9IyVcz6p9wAxGIf6F0,544
@@ -92,7 +131,7 @@ together/types/batch_create_params.py,sha256=2vFTT9PsqBn_F8qvnQNCRahrdeFl0MMhUg5
92
131
  together/types/batch_create_response.py,sha256=wJgUqyNbJ8oPwgUWpHHWkJx65bN6llbudAhF94gaKWs,325
93
132
  together/types/batch_job.py,sha256=3z7fVqcWcm38QGqy9O3mTJvPiuvfc6jZDYTIQ-VrFso,1138
94
133
  together/types/batch_list_response.py,sha256=eOYgKgpo05jSVx_-79YCKQhsj2pdxZ8mEaOBPptrwC8,264
95
- together/types/chat_completions.py,sha256=qAxgx6keitQpyufab-QbCadMYFgJeA9ectBb2jsm5oU,285
134
+ together/types/chat_completions.py,sha256=8zaq1jWlR06JCurcVS0mS9TPHqZjJrOEIR13ZFmdUn8,286
96
135
  together/types/code_interpreter_execute_params.py,sha256=n9YEbz2W5xCRUP2Coe6xYS914sUgP19Y4XolYa-iRao,1182
97
136
  together/types/completion.py,sha256=9t9bQc1x3s0LUGZ19fifWUosSGPTllO7kviY2Hvpkns,897
98
137
  together/types/completion_chunk.py,sha256=2GgVkgdnm7Ne-MnbFLakVTMIISkwXtAdn-CWdQ76D0U,1354
@@ -105,7 +144,7 @@ together/types/endpoint_list_avzones_response.py,sha256=LbzRkG7snD7Swy-t0E0MLXrl
105
144
  together/types/endpoint_list_params.py,sha256=83Mg5beLYX_ipn1X_izk7hDIO8q8YNEL-tjsv5AcNXo,506
106
145
  together/types/endpoint_list_response.py,sha256=LPyv8np_HctSW0QKstC8k7vF0RAejb6X9N2JowZtaEY,1010
107
146
  together/types/endpoint_update_params.py,sha256=ONGRuPZQe_C40N5tfnu-HyPBNFvPRWeA3A9lEtrligc,780
108
- together/types/endpoints.py,sha256=drlKQR6SkNSD3iNrh9VahetS0492EBDGxhOMpAr974E,153
147
+ together/types/endpoints.py,sha256=K4EjqO0ISqC_qGHprlw5rVh8Wn56RjtA5lj5zjoWcNM,154
109
148
  together/types/eval_create_params.py,sha256=KH4Jn8jzyufANXm1EQ5Cu4DkzQlqmRa7_t4m5c9QHHw,8059
110
149
  together/types/eval_create_response.py,sha256=s8tjFerVLIm8J4-qmp-kZ-yP65PsjWZ2AtK-ObGUv30,429
111
150
  together/types/eval_list_params.py,sha256=pdKw4pK5FQMnyY76L7Yj2Q-mOXtJv9rg9BU3iAud4V0,483
@@ -163,19 +202,16 @@ together/types/audio/transcription_create_response.py,sha256=z8_pzJlzYjP4QxJhwbK
163
202
  together/types/audio/translation_create_params.py,sha256=6-iHFC2K2o72K5tj0lfD-Lb69JzV4_5t_x2sdj2Pafs,1232
164
203
  together/types/audio/translation_create_response.py,sha256=T6SUCExVMin1qSGamHuiWGWS84MZ92tZPBHD7NYm4IU,1843
165
204
  together/types/audio/voice_list_response.py,sha256=vS2yvGBz7U2cxnJkEr7BewT7j5ActDjn99k3QhhEKk4,517
166
- together/types/beta/__init__.py,sha256=R-G7zZw0WQOGXjL9vFS1Hzo4C-tf6flC60TEIQkSbD4,749
205
+ together/types/beta/__init__.py,sha256=RAasVz0AMEdhf8FlzbsSJ4gm3wp4Ir1Yw3KJOg9M2II,581
167
206
  together/types/beta/cluster.py,sha256=QE0KMFrKikFbz5lZytvGqai9IBPAr_3PC_kqZd4yCcA,1636
168
- together/types/beta/cluster_create_params.py,sha256=hbx5CVqA9EZyC8NX_TjKpHZ_wyK4yXL-uKghJoVpyB4,1510
169
- together/types/beta/cluster_create_response.py,sha256=3NZHOdgeaTPY3f7T0u9YGuAnRIWoa4VWQe7PVFztqMU,219
207
+ together/types/beta/cluster_create_params.py,sha256=HwAsWvvhhTyLiAzGk7yo15bNredUUANR4yvnjYj-h5Y,1500
170
208
  together/types/beta/cluster_delete_response.py,sha256=rQ3dxuhlCqiuJBaVUUH51tNOkT6Xl-gnp0rRUxI6fOo,219
171
209
  together/types/beta/cluster_list_regions_response.py,sha256=QzRO4ns6nrZvMcdTKF9Tjk7wcjXvYMQgiRztLIkEzxQ,391
172
210
  together/types/beta/cluster_list_response.py,sha256=Vctdf-x12g1Y4vJHJ06GFCBXKaVdU6m8Pyb9OV8IM1Q,277
173
211
  together/types/beta/cluster_update_params.py,sha256=C3OIOG1IyjV4_UeH24rzVbYAmSJiBT0Hs5bb3lXZCcU,328
174
- together/types/beta/cluster_update_response.py,sha256=xl7aZ6sqY5Ssgx69OGzL_5ecZvfqUmxsr1leH-6pU9s,219
175
- together/types/beta/clusters/__init__.py,sha256=ZRymRrNli_b5kAZNBY18EfY6ESfjDr9kqPbho5b2uHY,587
176
- together/types/beta/clusters/cluster_storage.py,sha256=lcnTy4KkRrPOplMScRxFQUyrLJlZpFUl0L7OlW8HT6k,246
212
+ together/types/beta/clusters/__init__.py,sha256=lQZ_CtOtxPVEFjzZVcA23QL03OAHy1nhkoHMEaRof58,503
213
+ together/types/beta/clusters/cluster_storage.py,sha256=LyQuFNZfypsXITxnJaPmo-YlgnTJ1Nj8rSAWj4HVy3g,344
177
214
  together/types/beta/clusters/storage_create_params.py,sha256=RbGMXdNQrKEegvez0Ev-wZLMKHcuy-BYmRPGsmYaa5I,485
178
- together/types/beta/clusters/storage_create_response.py,sha256=IYezSxk3npJhLk-MnEdwtejcmNIy9rddIHdAk_0txU0,219
179
215
  together/types/beta/clusters/storage_delete_response.py,sha256=U66KfWWOZpCgpQz0QriF-DF8UsTkW7d0_IeBP3kCqqU,218
180
216
  together/types/beta/clusters/storage_list_response.py,sha256=wVyyFEGA-I9g-U9ii64tGGgIlPs0XZ9WNKwn-JbnBgc,299
181
217
  together/types/beta/clusters/storage_update_params.py,sha256=urq_FjfZiYcmCo6qsmaVu1JG4RsOsSMYWwe_yDQ7w-A,289
@@ -190,8 +226,8 @@ together/types/chat/chat_completion_warning.py,sha256=_Dp7YKlxyY2HeZopTvT-Go7qqK
190
226
  together/types/chat/completion_create_params.py,sha256=GpOQIpL2hODOV-iPoilHxo5UYP_KHJ-zdZMP-VW87-g,13755
191
227
  together/types/code_interpreter/__init__.py,sha256=dAXfb3ryLMtcBalCfxxNu2wJVswVP8G1xXryZnahPQY,201
192
228
  together/types/code_interpreter/session_list_response.py,sha256=TRxLGFTmIY-KLpStKjJtsrm4EI6BBvakpx43B6pkhnw,662
193
- together-2.0.0a15.dist-info/METADATA,sha256=r8NiFYDnCXkjrQ5-nzkc2HiRBbkKCmBPkUgDqPUXXlQ,21173
194
- together-2.0.0a15.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
195
- together-2.0.0a15.dist-info/entry_points.txt,sha256=4f4RAX89wQkx3AnfHXiGrKyg2fCPnwMd2UdPX48OczA,55
196
- together-2.0.0a15.dist-info/licenses/LICENSE,sha256=oSs-kmJHhMue4vIIPIxQMvXou9PbxgNdIX-r_AwfO7c,11338
197
- together-2.0.0a15.dist-info/RECORD,,
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,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ together = together.lib.cli:main
File without changes
@@ -1,152 +0,0 @@
1
- import json as json_lib
2
- from typing import Any, Dict, List
3
-
4
- import click
5
- from rich import print
6
- from tabulate import tabulate
7
-
8
- from together import Together
9
- from together.lib.cli.api.utils import handle_api_errors
10
- from together.types.beta.clusters import ClusterStorage
11
-
12
-
13
- def print_storage(storage: List[ClusterStorage]) -> None:
14
- data: List[Dict[str, Any]] = []
15
- for volume in storage:
16
- data.append(
17
- {
18
- "ID": volume.volume_id,
19
- "Name": volume.volume_name,
20
- "Size": volume.size_tib,
21
- }
22
- )
23
- click.echo(tabulate(data, headers="keys", tablefmt="grid"))
24
-
25
-
26
- @click.group()
27
- @click.pass_context
28
- def storage(ctx: click.Context) -> None:
29
- """Clusters Storage API commands"""
30
- pass
31
-
32
-
33
- @storage.command()
34
- @click.option(
35
- "--region",
36
- required=True,
37
- type=str,
38
- help="Region to create the storage volume in",
39
- )
40
- @click.option(
41
- "--size-tib",
42
- required=True,
43
- type=int,
44
- help="Size of the storage volume in TiB",
45
- )
46
- @click.option(
47
- "--volume-name",
48
- required=True,
49
- type=str,
50
- help="Name of the storage volume",
51
- )
52
- @click.option(
53
- "--json",
54
- is_flag=True,
55
- help="Output in JSON format",
56
- )
57
- @click.pass_context
58
- @handle_api_errors("Clusters Storage")
59
- def create(ctx: click.Context, region: str, size_tib: int, volume_name: str, json: bool) -> None:
60
- """Create a storage volume"""
61
- client: Together = ctx.obj
62
-
63
- response = client.beta.clusters.storage.create(
64
- region=region,
65
- size_tib=size_tib,
66
- volume_name=volume_name,
67
- )
68
-
69
- if json:
70
- click.echo(json_lib.dumps(response.model_dump_json(), indent=2))
71
- else:
72
- click.echo(f"Storage volume created successfully")
73
- click.echo(response.volume_id)
74
-
75
-
76
- @storage.command()
77
- @click.argument(
78
- "volume-id",
79
- required=True,
80
- )
81
- @click.option(
82
- "--json",
83
- is_flag=True,
84
- help="Output in JSON format",
85
- )
86
- @click.pass_context
87
- @handle_api_errors("Clusters Storage")
88
- def retrieve(ctx: click.Context, volume_id: str, json: bool) -> None:
89
- """Retrieve a storage volume"""
90
- client: Together = ctx.obj
91
-
92
- if not json:
93
- click.echo(f"Clusters Storage: Retrieving storage volume...")
94
-
95
- response = client.beta.clusters.storage.retrieve(volume_id)
96
-
97
- if json:
98
- click.echo(json_lib.dumps(response.model_dump(), indent=2))
99
- else:
100
- print(response)
101
-
102
-
103
- @storage.command()
104
- @click.argument(
105
- "volume-id",
106
- required=True,
107
- )
108
- @click.option(
109
- "--json",
110
- is_flag=True,
111
- help="Output in JSON format",
112
- )
113
- @click.pass_context
114
- @handle_api_errors("Clusters Storage")
115
- def delete(ctx: click.Context, volume_id: str, json: bool) -> None:
116
- """Delete a storage volume"""
117
- client: Together = ctx.obj
118
-
119
- if json:
120
- response = client.beta.clusters.storage.delete(volume_id)
121
- click.echo(json_lib.dumps(response.model_dump(), indent=2))
122
- return
123
-
124
- storage = client.beta.clusters.storage.retrieve(volume_id)
125
- print_storage([storage])
126
- if not click.confirm(f"Clusters Storage: Are you sure you want to delete storage volume {storage.volume_name}?"):
127
- return
128
-
129
- click.echo("Clusters Storage: Deleting storage volume...")
130
- response = client.beta.clusters.storage.delete(volume_id)
131
-
132
- click.echo(f"Clusters Storage: Deleted storage volume {storage.volume_name}")
133
-
134
-
135
- @storage.command()
136
- @click.option(
137
- "--json",
138
- is_flag=True,
139
- help="Output in JSON format",
140
- )
141
- @click.pass_context
142
- @handle_api_errors("Clusters Storage")
143
- def list(ctx: click.Context, json: bool) -> None:
144
- """List storage volumes"""
145
- client: Together = ctx.obj
146
-
147
- response = client.beta.clusters.storage.list()
148
-
149
- if json:
150
- click.echo(json_lib.dumps(response.model_dump(), indent=2))
151
- else:
152
- print_storage(response.volumes)