together 1.5.35__tar.gz → 2.0.0a6__tar.gz

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 (303) hide show
  1. together-2.0.0a6/.gitignore +15 -0
  2. together-2.0.0a6/.release-please-manifest.json +3 -0
  3. together-2.0.0a6/CHANGELOG.md +731 -0
  4. together-2.0.0a6/CONTRIBUTING.md +128 -0
  5. {together-1.5.35 → together-2.0.0a6}/LICENSE +1 -1
  6. together-2.0.0a6/PKG-INFO +729 -0
  7. together-2.0.0a6/README.md +684 -0
  8. together-2.0.0a6/SECURITY.md +27 -0
  9. together-2.0.0a6/api.md +295 -0
  10. together-2.0.0a6/bin/check-release-environment +21 -0
  11. together-2.0.0a6/bin/publish-pypi +7 -0
  12. together-2.0.0a6/examples/.keep +4 -0
  13. together-2.0.0a6/examples/coqa-small.jsonl +1 -0
  14. together-2.0.0a6/examples/coqa.jsonl +100 -0
  15. together-2.0.0a6/examples/embedding.py +11 -0
  16. together-2.0.0a6/examples/file-upload.py +10 -0
  17. together-2.0.0a6/examples/files.py +20 -0
  18. together-2.0.0a6/examples/fine_tuning.py +30 -0
  19. together-2.0.0a6/examples/image.py +21 -0
  20. together-2.0.0a6/examples/models.py +8 -0
  21. together-2.0.0a6/examples/streaming.py +18 -0
  22. together-2.0.0a6/pyproject.toml +266 -0
  23. together-2.0.0a6/release-please-config.json +66 -0
  24. together-2.0.0a6/requirements-dev.lock +168 -0
  25. together-2.0.0a6/src/together/__init__.py +110 -0
  26. together-2.0.0a6/src/together/_base_client.py +1995 -0
  27. together-2.0.0a6/src/together/_client.py +1033 -0
  28. together-2.0.0a6/src/together/_compat.py +219 -0
  29. together-2.0.0a6/src/together/_constants.py +14 -0
  30. together-2.0.0a6/src/together/_exceptions.py +108 -0
  31. together-2.0.0a6/src/together/_files.py +123 -0
  32. together-2.0.0a6/src/together/_models.py +857 -0
  33. together-2.0.0a6/src/together/_qs.py +150 -0
  34. together-2.0.0a6/src/together/_resource.py +43 -0
  35. together-2.0.0a6/src/together/_response.py +830 -0
  36. together-2.0.0a6/src/together/_streaming.py +370 -0
  37. together-2.0.0a6/src/together/_types.py +260 -0
  38. together-2.0.0a6/src/together/_utils/__init__.py +64 -0
  39. together-2.0.0a6/src/together/_utils/_compat.py +45 -0
  40. together-2.0.0a6/src/together/_utils/_datetime_parse.py +136 -0
  41. together-2.0.0a6/src/together/_utils/_logs.py +25 -0
  42. together-2.0.0a6/src/together/_utils/_proxy.py +65 -0
  43. together-2.0.0a6/src/together/_utils/_reflection.py +42 -0
  44. together-2.0.0a6/src/together/_utils/_resources_proxy.py +24 -0
  45. together-2.0.0a6/src/together/_utils/_streams.py +12 -0
  46. together-2.0.0a6/src/together/_utils/_sync.py +58 -0
  47. together-2.0.0a6/src/together/_utils/_transform.py +457 -0
  48. together-2.0.0a6/src/together/_utils/_typing.py +156 -0
  49. together-2.0.0a6/src/together/_utils/_utils.py +421 -0
  50. together-2.0.0a6/src/together/_version.py +4 -0
  51. together-2.0.0a6/src/together/lib/.keep +4 -0
  52. together-2.0.0a6/src/together/lib/__init__.py +23 -0
  53. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/cli/api/endpoints.py +66 -84
  54. together-1.5.35/src/together/cli/api/evaluation.py → together-2.0.0a6/src/together/lib/cli/api/evals.py +152 -43
  55. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/cli/api/files.py +20 -17
  56. together-1.5.35/src/together/cli/api/finetune.py → together-2.0.0a6/src/together/lib/cli/api/fine_tuning.py +116 -172
  57. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/cli/api/models.py +34 -27
  58. together-2.0.0a6/src/together/lib/cli/api/utils.py +50 -0
  59. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/cli/cli.py +16 -26
  60. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/constants.py +11 -24
  61. together-2.0.0a6/src/together/lib/resources/__init__.py +11 -0
  62. together-2.0.0a6/src/together/lib/resources/files.py +999 -0
  63. together-2.0.0a6/src/together/lib/resources/fine_tuning.py +280 -0
  64. together-2.0.0a6/src/together/lib/resources/models.py +35 -0
  65. together-2.0.0a6/src/together/lib/types/__init__.py +13 -0
  66. together-2.0.0a6/src/together/lib/types/error.py +9 -0
  67. together-2.0.0a6/src/together/lib/types/fine_tuning.py +397 -0
  68. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/utils/__init__.py +6 -14
  69. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/utils/_log.py +11 -16
  70. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/utils/files.py +90 -288
  71. together-2.0.0a6/src/together/lib/utils/serializer.py +10 -0
  72. {together-1.5.35/src/together → together-2.0.0a6/src/together/lib}/utils/tools.py +19 -55
  73. together-2.0.0a6/src/together/resources/__init__.py +229 -0
  74. together-2.0.0a6/src/together/resources/audio/__init__.py +75 -0
  75. together-2.0.0a6/src/together/resources/audio/audio.py +198 -0
  76. together-2.0.0a6/src/together/resources/audio/speech.py +605 -0
  77. together-2.0.0a6/src/together/resources/audio/transcriptions.py +282 -0
  78. together-2.0.0a6/src/together/resources/audio/translations.py +256 -0
  79. together-2.0.0a6/src/together/resources/audio/voices.py +135 -0
  80. together-2.0.0a6/src/together/resources/batches.py +417 -0
  81. together-2.0.0a6/src/together/resources/chat/__init__.py +33 -0
  82. together-2.0.0a6/src/together/resources/chat/chat.py +102 -0
  83. together-2.0.0a6/src/together/resources/chat/completions.py +1097 -0
  84. together-2.0.0a6/src/together/resources/code_interpreter/__init__.py +33 -0
  85. together-2.0.0a6/src/together/resources/code_interpreter/code_interpreter.py +258 -0
  86. together-2.0.0a6/src/together/resources/code_interpreter/sessions.py +135 -0
  87. together-2.0.0a6/src/together/resources/completions.py +920 -0
  88. together-2.0.0a6/src/together/resources/embeddings.py +208 -0
  89. together-2.0.0a6/src/together/resources/endpoints.py +711 -0
  90. together-2.0.0a6/src/together/resources/evals.py +452 -0
  91. together-2.0.0a6/src/together/resources/files.py +463 -0
  92. together-2.0.0a6/src/together/resources/fine_tuning.py +1033 -0
  93. together-2.0.0a6/src/together/resources/hardware.py +181 -0
  94. together-2.0.0a6/src/together/resources/images.py +310 -0
  95. together-2.0.0a6/src/together/resources/jobs.py +214 -0
  96. together-2.0.0a6/src/together/resources/models.py +282 -0
  97. together-2.0.0a6/src/together/resources/rerank.py +226 -0
  98. together-2.0.0a6/src/together/resources/videos.py +375 -0
  99. together-2.0.0a6/src/together/types/__init__.py +68 -0
  100. together-2.0.0a6/src/together/types/audio/__init__.py +10 -0
  101. together-2.0.0a6/src/together/types/audio/speech_create_params.py +75 -0
  102. together-2.0.0a6/src/together/types/audio/transcription_create_params.py +54 -0
  103. together-2.0.0a6/src/together/types/audio/transcription_create_response.py +111 -0
  104. together-2.0.0a6/src/together/types/audio/translation_create_params.py +40 -0
  105. together-2.0.0a6/src/together/types/audio/translation_create_response.py +70 -0
  106. together-2.0.0a6/src/together/types/audio/voice_list_response.py +23 -0
  107. together-2.0.0a6/src/together/types/audio_speech_stream_chunk.py +16 -0
  108. together-2.0.0a6/src/together/types/autoscaling.py +13 -0
  109. together-2.0.0a6/src/together/types/autoscaling_param.py +15 -0
  110. together-2.0.0a6/src/together/types/batch_create_params.py +24 -0
  111. together-2.0.0a6/src/together/types/batch_create_response.py +14 -0
  112. together-2.0.0a6/src/together/types/batch_job.py +45 -0
  113. together-2.0.0a6/src/together/types/batch_list_response.py +10 -0
  114. together-2.0.0a6/src/together/types/chat/__init__.py +18 -0
  115. together-2.0.0a6/src/together/types/chat/chat_completion.py +60 -0
  116. together-2.0.0a6/src/together/types/chat/chat_completion_chunk.py +61 -0
  117. together-2.0.0a6/src/together/types/chat/chat_completion_structured_message_image_url_param.py +18 -0
  118. together-2.0.0a6/src/together/types/chat/chat_completion_structured_message_text_param.py +13 -0
  119. together-2.0.0a6/src/together/types/chat/chat_completion_structured_message_video_url_param.py +18 -0
  120. together-2.0.0a6/src/together/types/chat/chat_completion_usage.py +13 -0
  121. together-2.0.0a6/src/together/types/chat/chat_completion_warning.py +9 -0
  122. together-2.0.0a6/src/together/types/chat/completion_create_params.py +329 -0
  123. together-2.0.0a6/src/together/types/code_interpreter/__init__.py +5 -0
  124. together-2.0.0a6/src/together/types/code_interpreter/session_list_response.py +31 -0
  125. together-2.0.0a6/src/together/types/code_interpreter_execute_params.py +45 -0
  126. together-2.0.0a6/src/together/types/completion.py +42 -0
  127. together-2.0.0a6/src/together/types/completion_chunk.py +66 -0
  128. together-2.0.0a6/src/together/types/completion_create_params.py +138 -0
  129. together-2.0.0a6/src/together/types/dedicated_endpoint.py +44 -0
  130. together-2.0.0a6/src/together/types/embedding.py +24 -0
  131. together-2.0.0a6/src/together/types/embedding_create_params.py +31 -0
  132. together-2.0.0a6/src/together/types/endpoint_create_params.py +43 -0
  133. together-2.0.0a6/src/together/types/endpoint_list_avzones_response.py +11 -0
  134. together-2.0.0a6/src/together/types/endpoint_list_params.py +18 -0
  135. together-2.0.0a6/src/together/types/endpoint_list_response.py +41 -0
  136. together-2.0.0a6/src/together/types/endpoint_update_params.py +27 -0
  137. together-2.0.0a6/src/together/types/eval_create_params.py +263 -0
  138. together-2.0.0a6/src/together/types/eval_create_response.py +16 -0
  139. together-2.0.0a6/src/together/types/eval_list_params.py +21 -0
  140. together-2.0.0a6/src/together/types/eval_list_response.py +10 -0
  141. together-2.0.0a6/src/together/types/eval_status_response.py +100 -0
  142. together-2.0.0a6/src/together/types/evaluation_job.py +139 -0
  143. together-2.0.0a6/src/together/types/execute_response.py +108 -0
  144. together-2.0.0a6/src/together/types/file_delete_response.py +13 -0
  145. together-2.0.0a6/src/together/types/file_list.py +12 -0
  146. together-2.0.0a6/src/together/types/file_purpose.py +9 -0
  147. together-2.0.0a6/src/together/types/file_response.py +31 -0
  148. together-2.0.0a6/src/together/types/file_type.py +7 -0
  149. together-2.0.0a6/src/together/types/fine_tuning_cancel_response.py +194 -0
  150. together-2.0.0a6/src/together/types/fine_tuning_content_params.py +24 -0
  151. together-2.0.0a6/src/together/types/fine_tuning_delete_params.py +11 -0
  152. together-2.0.0a6/src/together/types/fine_tuning_delete_response.py +12 -0
  153. together-2.0.0a6/src/together/types/fine_tuning_list_checkpoints_response.py +21 -0
  154. together-2.0.0a6/src/together/types/fine_tuning_list_events_response.py +12 -0
  155. together-2.0.0a6/src/together/types/fine_tuning_list_response.py +199 -0
  156. together-2.0.0a6/src/together/types/finetune_event.py +41 -0
  157. together-2.0.0a6/src/together/types/finetune_event_type.py +33 -0
  158. together-2.0.0a6/src/together/types/finetune_response.py +177 -0
  159. together-2.0.0a6/src/together/types/hardware_list_params.py +16 -0
  160. together-2.0.0a6/src/together/types/hardware_list_response.py +58 -0
  161. together-2.0.0a6/src/together/types/image_data_b64.py +15 -0
  162. together-2.0.0a6/src/together/types/image_data_url.py +15 -0
  163. together-2.0.0a6/src/together/types/image_file.py +23 -0
  164. together-2.0.0a6/src/together/types/image_generate_params.py +85 -0
  165. together-2.0.0a6/src/together/types/job_list_response.py +47 -0
  166. together-2.0.0a6/src/together/types/job_retrieve_response.py +43 -0
  167. together-2.0.0a6/src/together/types/log_probs.py +18 -0
  168. together-2.0.0a6/src/together/types/model_list_response.py +10 -0
  169. together-2.0.0a6/src/together/types/model_object.py +42 -0
  170. together-2.0.0a6/src/together/types/model_upload_params.py +36 -0
  171. together-2.0.0a6/src/together/types/model_upload_response.py +23 -0
  172. together-2.0.0a6/src/together/types/rerank_create_params.py +36 -0
  173. together-2.0.0a6/src/together/types/rerank_create_response.py +36 -0
  174. together-2.0.0a6/src/together/types/tool_choice.py +23 -0
  175. together-2.0.0a6/src/together/types/tool_choice_param.py +23 -0
  176. together-2.0.0a6/src/together/types/tools_param.py +23 -0
  177. together-2.0.0a6/src/together/types/training_method_dpo.py +22 -0
  178. together-2.0.0a6/src/together/types/training_method_sft.py +18 -0
  179. together-2.0.0a6/src/together/types/video_create_params.py +86 -0
  180. together-2.0.0a6/src/together/types/video_create_response.py +10 -0
  181. together-2.0.0a6/src/together/types/video_job.py +57 -0
  182. together-2.0.0a6/tests/__init__.py +1 -0
  183. together-2.0.0a6/tests/api_resources/__init__.py +1 -0
  184. together-2.0.0a6/tests/api_resources/audio/__init__.py +1 -0
  185. together-2.0.0a6/tests/api_resources/audio/test_speech.py +298 -0
  186. together-2.0.0a6/tests/api_resources/audio/test_transcriptions.py +114 -0
  187. together-2.0.0a6/tests/api_resources/audio/test_translations.py +112 -0
  188. together-2.0.0a6/tests/api_resources/audio/test_voices.py +74 -0
  189. together-2.0.0a6/tests/api_resources/chat/__init__.py +1 -0
  190. together-2.0.0a6/tests/api_resources/chat/test_completions.py +428 -0
  191. together-2.0.0a6/tests/api_resources/code_interpreter/__init__.py +1 -0
  192. together-2.0.0a6/tests/api_resources/code_interpreter/test_sessions.py +80 -0
  193. together-2.0.0a6/tests/api_resources/test_batches.py +316 -0
  194. together-2.0.0a6/tests/api_resources/test_code_interpreter.py +132 -0
  195. together-2.0.0a6/tests/api_resources/test_completions.py +272 -0
  196. together-2.0.0a6/tests/api_resources/test_embeddings.py +92 -0
  197. together-2.0.0a6/tests/api_resources/test_endpoints.py +530 -0
  198. together-2.0.0a6/tests/api_resources/test_evals.py +419 -0
  199. together-2.0.0a6/tests/api_resources/test_files.py +334 -0
  200. together-2.0.0a6/tests/api_resources/test_fine_tuning.py +589 -0
  201. together-2.0.0a6/tests/api_resources/test_hardware.py +88 -0
  202. together-2.0.0a6/tests/api_resources/test_images.py +142 -0
  203. together-2.0.0a6/tests/api_resources/test_jobs.py +150 -0
  204. together-2.0.0a6/tests/api_resources/test_models.py +168 -0
  205. together-2.0.0a6/tests/api_resources/test_rerank.py +258 -0
  206. together-2.0.0a6/tests/api_resources/test_videos.py +212 -0
  207. together-2.0.0a6/tests/conftest.py +84 -0
  208. together-2.0.0a6/tests/integration/constants.py +23 -0
  209. together-2.0.0a6/tests/integration/resources/__init__.py +0 -0
  210. together-2.0.0a6/tests/integration/resources/generate_hyperparameters.py +51 -0
  211. together-2.0.0a6/tests/integration/resources/test_completion.py +561 -0
  212. together-2.0.0a6/tests/integration/resources/test_completion_stream.py +128 -0
  213. together-2.0.0a6/tests/integration/resources/test_files.py +48 -0
  214. together-2.0.0a6/tests/sample_file.txt +1 -0
  215. together-2.0.0a6/tests/test_client.py +1824 -0
  216. together-2.0.0a6/tests/test_deepcopy.py +58 -0
  217. together-2.0.0a6/tests/test_extract_files.py +64 -0
  218. together-2.0.0a6/tests/test_files.py +51 -0
  219. together-2.0.0a6/tests/test_models.py +963 -0
  220. together-2.0.0a6/tests/test_qs.py +78 -0
  221. together-2.0.0a6/tests/test_required_args.py +111 -0
  222. together-2.0.0a6/tests/test_response.py +277 -0
  223. together-2.0.0a6/tests/test_streaming.py +248 -0
  224. together-2.0.0a6/tests/test_transform.py +460 -0
  225. together-2.0.0a6/tests/test_utils/test_datetime_parse.py +110 -0
  226. together-2.0.0a6/tests/test_utils/test_proxy.py +34 -0
  227. together-2.0.0a6/tests/test_utils/test_typing.py +73 -0
  228. together-2.0.0a6/tests/unit/test_async_client.py +110 -0
  229. together-2.0.0a6/tests/unit/test_client.py +110 -0
  230. together-2.0.0a6/tests/unit/test_code_interpreter.py +490 -0
  231. together-2.0.0a6/tests/unit/test_files_checks.py +465 -0
  232. together-2.0.0a6/tests/unit/test_files_resource.py +86 -0
  233. together-2.0.0a6/tests/unit/test_fine_tuning_resources.py +338 -0
  234. together-2.0.0a6/tests/unit/test_imports.py +15 -0
  235. together-2.0.0a6/tests/unit/test_multipart_upload_manager.py +46 -0
  236. together-2.0.0a6/tests/unit/test_preference_openai.py +296 -0
  237. together-2.0.0a6/tests/unit/test_video_url.py +35 -0
  238. together-2.0.0a6/tests/utils.py +167 -0
  239. together-2.0.0a6/uv.lock +2349 -0
  240. together-1.5.35/PKG-INFO +0 -583
  241. together-1.5.35/README.md +0 -544
  242. together-1.5.35/pyproject.toml +0 -107
  243. together-1.5.35/src/together/__init__.py +0 -123
  244. together-1.5.35/src/together/abstract/api_requestor.py +0 -770
  245. together-1.5.35/src/together/cli/api/chat.py +0 -298
  246. together-1.5.35/src/together/cli/api/completions.py +0 -119
  247. together-1.5.35/src/together/cli/api/images.py +0 -93
  248. together-1.5.35/src/together/cli/api/utils.py +0 -139
  249. together-1.5.35/src/together/client.py +0 -186
  250. together-1.5.35/src/together/error.py +0 -194
  251. together-1.5.35/src/together/filemanager.py +0 -635
  252. together-1.5.35/src/together/legacy/base.py +0 -27
  253. together-1.5.35/src/together/legacy/complete.py +0 -93
  254. together-1.5.35/src/together/legacy/embeddings.py +0 -27
  255. together-1.5.35/src/together/legacy/files.py +0 -146
  256. together-1.5.35/src/together/legacy/finetune.py +0 -177
  257. together-1.5.35/src/together/legacy/images.py +0 -27
  258. together-1.5.35/src/together/legacy/models.py +0 -44
  259. together-1.5.35/src/together/resources/__init__.py +0 -43
  260. together-1.5.35/src/together/resources/audio/__init__.py +0 -51
  261. together-1.5.35/src/together/resources/audio/speech.py +0 -159
  262. together-1.5.35/src/together/resources/audio/transcriptions.py +0 -296
  263. together-1.5.35/src/together/resources/audio/translations.py +0 -276
  264. together-1.5.35/src/together/resources/audio/voices.py +0 -65
  265. together-1.5.35/src/together/resources/batch.py +0 -165
  266. together-1.5.35/src/together/resources/chat/__init__.py +0 -24
  267. together-1.5.35/src/together/resources/chat/completions.py +0 -297
  268. together-1.5.35/src/together/resources/code_interpreter.py +0 -82
  269. together-1.5.35/src/together/resources/completions.py +0 -261
  270. together-1.5.35/src/together/resources/embeddings.py +0 -104
  271. together-1.5.35/src/together/resources/endpoints.py +0 -612
  272. together-1.5.35/src/together/resources/evaluation.py +0 -808
  273. together-1.5.35/src/together/resources/files.py +0 -195
  274. together-1.5.35/src/together/resources/finetune.py +0 -1388
  275. together-1.5.35/src/together/resources/images.py +0 -156
  276. together-1.5.35/src/together/resources/models.py +0 -252
  277. together-1.5.35/src/together/resources/rerank.py +0 -128
  278. together-1.5.35/src/together/resources/videos.py +0 -303
  279. together-1.5.35/src/together/together_response.py +0 -50
  280. together-1.5.35/src/together/types/__init__.py +0 -169
  281. together-1.5.35/src/together/types/abstract.py +0 -26
  282. together-1.5.35/src/together/types/audio_speech.py +0 -311
  283. together-1.5.35/src/together/types/batch.py +0 -54
  284. together-1.5.35/src/together/types/chat_completions.py +0 -210
  285. together-1.5.35/src/together/types/code_interpreter.py +0 -57
  286. together-1.5.35/src/together/types/common.py +0 -67
  287. together-1.5.35/src/together/types/completions.py +0 -107
  288. together-1.5.35/src/together/types/embeddings.py +0 -35
  289. together-1.5.35/src/together/types/endpoints.py +0 -123
  290. together-1.5.35/src/together/types/error.py +0 -16
  291. together-1.5.35/src/together/types/evaluation.py +0 -93
  292. together-1.5.35/src/together/types/files.py +0 -93
  293. together-1.5.35/src/together/types/finetune.py +0 -465
  294. together-1.5.35/src/together/types/images.py +0 -42
  295. together-1.5.35/src/together/types/models.py +0 -96
  296. together-1.5.35/src/together/types/rerank.py +0 -43
  297. together-1.5.35/src/together/types/videos.py +0 -69
  298. together-1.5.35/src/together/utils/api_helpers.py +0 -124
  299. together-1.5.35/src/together/version.py +0 -6
  300. {together-1.5.35/src/together/abstract → together-2.0.0a6/src/together/lib/cli}/__init__.py +0 -0
  301. {together-1.5.35/src/together/cli → together-2.0.0a6/src/together/lib/cli/api}/__init__.py +0 -0
  302. /together-1.5.35/src/together/cli/api/__init__.py → /together-2.0.0a6/src/together/py.typed +0 -0
  303. {together-1.5.35/src/together/legacy → together-2.0.0a6/tests/integration}/__init__.py +0 -0
@@ -0,0 +1,15 @@
1
+ .prism.log
2
+ _dev
3
+
4
+ __pycache__
5
+ .mypy_cache
6
+
7
+ dist
8
+
9
+ .venv
10
+ .idea
11
+
12
+ .env
13
+ .envrc
14
+ codegen.log
15
+ Brewfile.lock.json
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "2.0.0-alpha.6"
3
+ }