together 2.0.0a13__tar.gz → 2.0.0a15__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.
- together-2.0.0a15/.release-please-manifest.json +3 -0
- {together-2.0.0a13 → together-2.0.0a15}/CHANGELOG.md +23 -0
- {together-2.0.0a13 → together-2.0.0a15}/PKG-INFO +55 -8
- {together-2.0.0a13 → together-2.0.0a15}/README.md +54 -7
- {together-2.0.0a13 → together-2.0.0a15}/api.md +47 -0
- {together-2.0.0a13 → together-2.0.0a15}/pyproject.toml +1 -1
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_client.py +38 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_version.py +1 -1
- together-2.0.0a15/src/together/constants.py +34 -0
- together-2.0.0a15/src/together/error.py +16 -0
- together-2.0.0a15/src/together/lib/cli/api/beta/beta.py +12 -0
- together-2.0.0a15/src/together/lib/cli/api/beta/clusters.py +357 -0
- together-2.0.0a15/src/together/lib/cli/api/beta/clusters_storage.py +152 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/utils.py +41 -5
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/cli.py +2 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/types/fine_tuning.py +3 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/__init__.py +14 -0
- together-2.0.0a15/src/together/resources/beta/__init__.py +33 -0
- together-2.0.0a15/src/together/resources/beta/beta.py +102 -0
- together-2.0.0a15/src/together/resources/beta/clusters/__init__.py +33 -0
- together-2.0.0a15/src/together/resources/beta/clusters/clusters.py +628 -0
- together-2.0.0a15/src/together/resources/beta/clusters/storage.py +490 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/__init__.py +12 -1
- together-2.0.0a15/src/together/types/beta/__init__.py +12 -0
- together-2.0.0a15/src/together/types/beta/cluster.py +93 -0
- together-2.0.0a15/src/together/types/beta/cluster_create_params.py +51 -0
- together-2.0.0a15/src/together/types/beta/cluster_create_response.py +9 -0
- together-2.0.0a15/src/together/types/beta/cluster_delete_response.py +9 -0
- together-2.0.0a15/src/together/types/beta/cluster_list_regions_response.py +21 -0
- together-2.0.0a15/src/together/types/beta/cluster_list_response.py +12 -0
- together-2.0.0a15/src/together/types/beta/cluster_update_params.py +13 -0
- together-2.0.0a15/src/together/types/beta/cluster_update_response.py +9 -0
- together-2.0.0a15/src/together/types/beta/clusters/__init__.py +10 -0
- together-2.0.0a15/src/together/types/beta/clusters/cluster_storage.py +13 -0
- together-2.0.0a15/src/together/types/beta/clusters/storage_create_params.py +17 -0
- together-2.0.0a15/src/together/types/beta/clusters/storage_create_response.py +9 -0
- together-2.0.0a15/src/together/types/beta/clusters/storage_delete_response.py +9 -0
- together-2.0.0a15/src/together/types/beta/clusters/storage_list_response.py +12 -0
- together-2.0.0a15/src/together/types/beta/clusters/storage_update_params.py +13 -0
- together-2.0.0a15/src/together/types/chat_completions.py +7 -0
- together-2.0.0a15/src/together/types/endpoints.py +4 -0
- together-2.0.0a15/src/together/types/files.py +8 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_cancel_response.py +3 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_list_response.py +3 -0
- together-2.0.0a15/src/together/types/finetune.py +27 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/finetune_response.py +2 -0
- together-2.0.0a15/src/together/types/models.py +2 -0
- together-2.0.0a15/tests/api_resources/beta/clusters/test_storage.py +371 -0
- together-2.0.0a15/tests/api_resources/beta/test_clusters.py +515 -0
- together-2.0.0a15/tests/api_resources/chat/__init__.py +1 -0
- together-2.0.0a15/tests/api_resources/code_interpreter/__init__.py +1 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_cli_utils.py +5 -4
- {together-2.0.0a13 → together-2.0.0a15}/uv.lock +1 -1
- together-2.0.0a13/.release-please-manifest.json +0 -3
- {together-2.0.0a13 → together-2.0.0a15}/.gitignore +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/CONTRIBUTING.md +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/LICENSE +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/SECURITY.md +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/bin/check-release-environment +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/bin/publish-pypi +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/.keep +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/coqa-small.jsonl +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/coqa.jsonl +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/embedding.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/file-upload.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/fine_tuning.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/image.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/models.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/examples/streaming.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/release-please-config.json +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/requirements-dev.lock +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_base_client.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_compat.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_constants.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_exceptions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_models.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_qs.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_resource.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_streaming.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_types.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_compat.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_datetime_parse.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_logs.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_proxy.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_reflection.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_resources_proxy.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_streams.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_sync.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_transform.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_typing.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/_utils/_utils.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/.keep +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/endpoints.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/evals.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/fine_tuning.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/cli/api/models.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/constants.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/resources/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/resources/files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/resources/fine_tuning.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/types/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/types/error.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/utils/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/utils/_log.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/utils/files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/utils/serializer.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/lib/utils/tools.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/py.typed +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/audio/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/audio/audio.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/audio/speech.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/audio/transcriptions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/audio/translations.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/audio/voices.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/batches.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/chat/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/chat/chat.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/chat/completions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/code_interpreter/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/code_interpreter/code_interpreter.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/code_interpreter/sessions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/completions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/embeddings.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/endpoints.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/evals.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/fine_tuning.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/hardware.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/images.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/jobs.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/models.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/rerank.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/resources/videos.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/speech_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/transcription_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/transcription_create_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/translation_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/translation_create_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio/voice_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/audio_speech_stream_chunk.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/autoscaling.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/autoscaling_param.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/batch_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/batch_create_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/batch_job.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/batch_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion_chunk.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion_structured_message_image_url_param.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion_structured_message_text_param.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion_structured_message_video_url_param.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion_usage.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/chat_completion_warning.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/chat/completion_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/code_interpreter/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/code_interpreter/session_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/code_interpreter_execute_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/completion.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/completion_chunk.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/completion_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/dedicated_endpoint.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/embedding.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/embedding_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/endpoint_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/endpoint_list_avzones_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/endpoint_list_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/endpoint_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/endpoint_update_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/eval_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/eval_create_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/eval_list_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/eval_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/eval_status_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/evaluation_job.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/execute_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/file_delete_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/file_list.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/file_purpose.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/file_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/file_type.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_content_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_delete_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_delete_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_estimate_price_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_estimate_price_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_list_checkpoints_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/fine_tuning_list_events_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/finetune_event.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/finetune_event_type.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/hardware_list_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/hardware_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/image_data_b64.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/image_data_url.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/image_file.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/image_generate_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/job_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/job_retrieve_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/log_probs.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/model_list_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/model_list_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/model_object.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/model_upload_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/model_upload_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/rerank_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/rerank_create_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/tool_choice.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/tool_choice_param.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/tools_param.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/training_method_dpo.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/training_method_sft.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/video_create_params.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/src/together/types/video_job.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/audio/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/audio/test_speech.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/audio/test_transcriptions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/audio/test_translations.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/audio/test_voices.py +0 -0
- {together-2.0.0a13/tests/api_resources/chat → together-2.0.0a15/tests/api_resources/beta}/__init__.py +0 -0
- {together-2.0.0a13/tests/api_resources/code_interpreter → together-2.0.0a15/tests/api_resources/beta/clusters}/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/chat/test_completions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/code_interpreter/test_sessions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_batches.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_code_interpreter.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_completions.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_embeddings.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_endpoints.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_evals.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_fine_tuning.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_hardware.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_images.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_jobs.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_models.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_rerank.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/api_resources/test_videos.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/conftest.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/constants.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/resources/__init__.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/resources/generate_hyperparameters.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/resources/test_completion.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/resources/test_completion_stream.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/integration/resources/test_files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/sample_file.txt +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_client.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_deepcopy.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_extract_files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_files.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_models.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_qs.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_required_args.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_response.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_streaming.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_transform.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_utils/test_datetime_parse.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_utils/test_proxy.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/test_utils/test_typing.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_async_client.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_client.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_code_interpreter.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_files_checks.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_files_resource.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_fine_tuning_resources.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_imports.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_multipart_upload_manager.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_preference_openai.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/unit/test_video_url.py +0 -0
- {together-2.0.0a13 → together-2.0.0a15}/tests/utils.py +0 -0
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0-alpha.15 (2026-01-09)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.0.0-alpha.14...v2.0.0-alpha.15](https://github.com/togethercomputer/together-py/compare/v2.0.0-alpha.14...v2.0.0-alpha.15)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Add started_at timestamp to fix time estimation ([92ce60d](https://github.com/togethercomputer/together-py/commit/92ce60dd081700c1ef804dc7ad581a4fcf5d81a0))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **api:** Remove APIs that were accidentally added in the wrong namespace ([0425f14](https://github.com/togethercomputer/together-py/commit/0425f14f7598fe3065d6f26c0ae3b577149798b0))
|
|
15
|
+
* Minimize breaking changes on common import paths and alias names ([#206](https://github.com/togethercomputer/together-py/issues/206)) ([e677e60](https://github.com/togethercomputer/together-py/commit/e677e6038ee662d79f9a5f0bbf5452843ea37782))
|
|
16
|
+
* Update README for clusters CLI commands ([aeaf53a](https://github.com/togethercomputer/together-py/commit/aeaf53a4825376d4aad59c9a70efd0b26a3e1aab))
|
|
17
|
+
|
|
18
|
+
## 2.0.0-alpha.14 (2026-01-06)
|
|
19
|
+
|
|
20
|
+
Full Changelog: [v2.0.0-alpha.13...v2.0.0-alpha.14](https://github.com/togethercomputer/together-py/compare/v2.0.0-alpha.13...v2.0.0-alpha.14)
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* Add Instant Clusters to OpenAPI spec ([2583943](https://github.com/togethercomputer/together-py/commit/25839431e9d7636e3cb2e1b14b8eaeeac179dda5))
|
|
25
|
+
|
|
3
26
|
## 2.0.0-alpha.13 (2026-01-06)
|
|
4
27
|
|
|
5
28
|
Full Changelog: [v2.0.0-alpha.12...v2.0.0-alpha.13](https://github.com/togethercomputer/together-py/compare/v2.0.0-alpha.12...v2.0.0-alpha.13)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: together
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a15
|
|
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
|
|
@@ -232,15 +232,21 @@ from together import Together
|
|
|
232
232
|
|
|
233
233
|
client = Together()
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
cluster = client.beta.clusters.create(
|
|
236
|
+
billing_type="RESERVED",
|
|
237
|
+
cluster_name="cluster_name",
|
|
238
|
+
driver_version="CUDA_12_5_555",
|
|
239
|
+
duration_days=0,
|
|
240
|
+
gpu_type="H100_SXM",
|
|
241
|
+
num_gpus=0,
|
|
242
|
+
region="us-central-8",
|
|
243
|
+
shared_volume={
|
|
244
|
+
"region": "region",
|
|
245
|
+
"size_tib": 0,
|
|
246
|
+
"volume_name": "volume_name",
|
|
239
247
|
},
|
|
240
|
-
hardware="1x_nvidia_a100_80gb_sxm",
|
|
241
|
-
model="meta-llama/Llama-3-8b-chat-hf",
|
|
242
248
|
)
|
|
243
|
-
print(
|
|
249
|
+
print(cluster.shared_volume)
|
|
244
250
|
```
|
|
245
251
|
|
|
246
252
|
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.
|
|
@@ -674,6 +680,47 @@ together models list
|
|
|
674
680
|
together models upload --model-name my-org/my-model --model-source s3-or-hugging-face
|
|
675
681
|
```
|
|
676
682
|
|
|
683
|
+
### Clusters
|
|
684
|
+
|
|
685
|
+
```bash
|
|
686
|
+
# Help
|
|
687
|
+
together beta clusters --help
|
|
688
|
+
|
|
689
|
+
# Create a cluster
|
|
690
|
+
together beta clusters create
|
|
691
|
+
|
|
692
|
+
# List clusters
|
|
693
|
+
together beta clusters list
|
|
694
|
+
|
|
695
|
+
# Retrieve cluster details
|
|
696
|
+
together beta clusters retrieve [cluster-id]
|
|
697
|
+
|
|
698
|
+
# Update a cluster
|
|
699
|
+
together beta clusters update [cluster-id]
|
|
700
|
+
|
|
701
|
+
# Retrieve Together cluster configuration options such as regions, gpu types and drivers available
|
|
702
|
+
together beta clusters list-regions
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
##### Cluster Storage
|
|
706
|
+
|
|
707
|
+
```bash
|
|
708
|
+
# Help
|
|
709
|
+
together beta clusters storage --help
|
|
710
|
+
|
|
711
|
+
# Create cluster storage volume
|
|
712
|
+
together beta clusters storage create
|
|
713
|
+
|
|
714
|
+
# List storage volumes
|
|
715
|
+
together beta clusters storage list
|
|
716
|
+
|
|
717
|
+
# Retrieve storage volume
|
|
718
|
+
together beta clusters storage retrieve [storage-id]
|
|
719
|
+
|
|
720
|
+
# Delete storage volume
|
|
721
|
+
together beta clusters storage delete [storage-id]
|
|
722
|
+
```
|
|
723
|
+
|
|
677
724
|
## Contributing
|
|
678
725
|
|
|
679
726
|
See [the contributing documentation](https://github.com/togethercomputer/together-py/tree/main/./CONTRIBUTING.md).
|
|
@@ -186,15 +186,21 @@ from together import Together
|
|
|
186
186
|
|
|
187
187
|
client = Together()
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
cluster = client.beta.clusters.create(
|
|
190
|
+
billing_type="RESERVED",
|
|
191
|
+
cluster_name="cluster_name",
|
|
192
|
+
driver_version="CUDA_12_5_555",
|
|
193
|
+
duration_days=0,
|
|
194
|
+
gpu_type="H100_SXM",
|
|
195
|
+
num_gpus=0,
|
|
196
|
+
region="us-central-8",
|
|
197
|
+
shared_volume={
|
|
198
|
+
"region": "region",
|
|
199
|
+
"size_tib": 0,
|
|
200
|
+
"volume_name": "volume_name",
|
|
193
201
|
},
|
|
194
|
-
hardware="1x_nvidia_a100_80gb_sxm",
|
|
195
|
-
model="meta-llama/Llama-3-8b-chat-hf",
|
|
196
202
|
)
|
|
197
|
-
print(
|
|
203
|
+
print(cluster.shared_volume)
|
|
198
204
|
```
|
|
199
205
|
|
|
200
206
|
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.
|
|
@@ -628,6 +634,47 @@ together models list
|
|
|
628
634
|
together models upload --model-name my-org/my-model --model-source s3-or-hugging-face
|
|
629
635
|
```
|
|
630
636
|
|
|
637
|
+
### Clusters
|
|
638
|
+
|
|
639
|
+
```bash
|
|
640
|
+
# Help
|
|
641
|
+
together beta clusters --help
|
|
642
|
+
|
|
643
|
+
# Create a cluster
|
|
644
|
+
together beta clusters create
|
|
645
|
+
|
|
646
|
+
# List clusters
|
|
647
|
+
together beta clusters list
|
|
648
|
+
|
|
649
|
+
# Retrieve cluster details
|
|
650
|
+
together beta clusters retrieve [cluster-id]
|
|
651
|
+
|
|
652
|
+
# Update a cluster
|
|
653
|
+
together beta clusters update [cluster-id]
|
|
654
|
+
|
|
655
|
+
# Retrieve Together cluster configuration options such as regions, gpu types and drivers available
|
|
656
|
+
together beta clusters list-regions
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
##### Cluster Storage
|
|
660
|
+
|
|
661
|
+
```bash
|
|
662
|
+
# Help
|
|
663
|
+
together beta clusters storage --help
|
|
664
|
+
|
|
665
|
+
# Create cluster storage volume
|
|
666
|
+
together beta clusters storage create
|
|
667
|
+
|
|
668
|
+
# List storage volumes
|
|
669
|
+
together beta clusters storage list
|
|
670
|
+
|
|
671
|
+
# Retrieve storage volume
|
|
672
|
+
together beta clusters storage retrieve [storage-id]
|
|
673
|
+
|
|
674
|
+
# Delete storage volume
|
|
675
|
+
together beta clusters storage delete [storage-id]
|
|
676
|
+
```
|
|
677
|
+
|
|
631
678
|
## Contributing
|
|
632
679
|
|
|
633
680
|
See [the contributing documentation](./CONTRIBUTING.md).
|
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
# Beta
|
|
2
|
+
|
|
3
|
+
## Clusters
|
|
4
|
+
|
|
5
|
+
Types:
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
from together.types.beta import (
|
|
9
|
+
Cluster,
|
|
10
|
+
ClusterCreateResponse,
|
|
11
|
+
ClusterUpdateResponse,
|
|
12
|
+
ClusterListResponse,
|
|
13
|
+
ClusterDeleteResponse,
|
|
14
|
+
ClusterListRegionsResponse,
|
|
15
|
+
)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Methods:
|
|
19
|
+
|
|
20
|
+
- <code title="post /clusters">client.beta.clusters.<a href="./src/together/resources/beta/clusters/clusters.py">create</a>(\*\*<a href="src/together/types/beta/cluster_create_params.py">params</a>) -> <a href="./src/together/types/beta/cluster_create_response.py">ClusterCreateResponse</a></code>
|
|
21
|
+
- <code title="get /clusters/{cluster_id}">client.beta.clusters.<a href="./src/together/resources/beta/clusters/clusters.py">retrieve</a>(cluster_id) -> <a href="./src/together/types/beta/cluster.py">Cluster</a></code>
|
|
22
|
+
- <code title="put /clusters/{cluster_id}">client.beta.clusters.<a href="./src/together/resources/beta/clusters/clusters.py">update</a>(cluster_id, \*\*<a href="src/together/types/beta/cluster_update_params.py">params</a>) -> <a href="./src/together/types/beta/cluster_update_response.py">ClusterUpdateResponse</a></code>
|
|
23
|
+
- <code title="get /clusters">client.beta.clusters.<a href="./src/together/resources/beta/clusters/clusters.py">list</a>() -> <a href="./src/together/types/beta/cluster_list_response.py">ClusterListResponse</a></code>
|
|
24
|
+
- <code title="delete /clusters/{cluster_id}">client.beta.clusters.<a href="./src/together/resources/beta/clusters/clusters.py">delete</a>(cluster_id) -> <a href="./src/together/types/beta/cluster_delete_response.py">ClusterDeleteResponse</a></code>
|
|
25
|
+
- <code title="get /clusters/regions">client.beta.clusters.<a href="./src/together/resources/beta/clusters/clusters.py">list_regions</a>() -> <a href="./src/together/types/beta/cluster_list_regions_response.py">ClusterListRegionsResponse</a></code>
|
|
26
|
+
|
|
27
|
+
### Storage
|
|
28
|
+
|
|
29
|
+
Types:
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from together.types.beta.clusters import (
|
|
33
|
+
ClusterStorage,
|
|
34
|
+
StorageCreateResponse,
|
|
35
|
+
StorageListResponse,
|
|
36
|
+
StorageDeleteResponse,
|
|
37
|
+
)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Methods:
|
|
41
|
+
|
|
42
|
+
- <code title="post /clusters/storages">client.beta.clusters.storage.<a href="./src/together/resources/beta/clusters/storage.py">create</a>(\*\*<a href="src/together/types/beta/clusters/storage_create_params.py">params</a>) -> <a href="./src/together/types/beta/clusters/storage_create_response.py">StorageCreateResponse</a></code>
|
|
43
|
+
- <code title="get /clusters/storages/{volume_id}">client.beta.clusters.storage.<a href="./src/together/resources/beta/clusters/storage.py">retrieve</a>(volume_id) -> <a href="./src/together/types/beta/clusters/cluster_storage.py">ClusterStorage</a></code>
|
|
44
|
+
- <code title="put /clusters/storages">client.beta.clusters.storage.<a href="./src/together/resources/beta/clusters/storage.py">update</a>(\*\*<a href="src/together/types/beta/clusters/storage_update_params.py">params</a>) -> <a href="./src/together/types/beta/clusters/cluster_storage.py">ClusterStorage</a></code>
|
|
45
|
+
- <code title="get /clusters/storages">client.beta.clusters.storage.<a href="./src/together/resources/beta/clusters/storage.py">list</a>() -> <a href="./src/together/types/beta/clusters/storage_list_response.py">StorageListResponse</a></code>
|
|
46
|
+
- <code title="delete /clusters/storages/{volume_id}">client.beta.clusters.storage.<a href="./src/together/resources/beta/clusters/storage.py">delete</a>(volume_id) -> <a href="./src/together/types/beta/clusters/storage_delete_response.py">StorageDeleteResponse</a></code>
|
|
47
|
+
|
|
1
48
|
# Chat
|
|
2
49
|
|
|
3
50
|
## Completions
|
|
@@ -32,6 +32,7 @@ from ._base_client import (
|
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING:
|
|
34
34
|
from .resources import (
|
|
35
|
+
beta,
|
|
35
36
|
chat,
|
|
36
37
|
jobs,
|
|
37
38
|
audio,
|
|
@@ -58,6 +59,7 @@ if TYPE_CHECKING:
|
|
|
58
59
|
from .resources.videos import VideosResource, AsyncVideosResource
|
|
59
60
|
from .resources.batches import BatchesResource, AsyncBatchesResource
|
|
60
61
|
from .resources.hardware import HardwareResource, AsyncHardwareResource
|
|
62
|
+
from .resources.beta.beta import BetaResource, AsyncBetaResource
|
|
61
63
|
from .resources.chat.chat import ChatResource, AsyncChatResource
|
|
62
64
|
from .resources.endpoints import EndpointsResource, AsyncEndpointsResource
|
|
63
65
|
from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource
|
|
@@ -136,6 +138,12 @@ class Together(SyncAPIClient):
|
|
|
136
138
|
|
|
137
139
|
self._default_stream_cls = Stream
|
|
138
140
|
|
|
141
|
+
@cached_property
|
|
142
|
+
def beta(self) -> BetaResource:
|
|
143
|
+
from .resources.beta import BetaResource
|
|
144
|
+
|
|
145
|
+
return BetaResource(self)
|
|
146
|
+
|
|
139
147
|
@cached_property
|
|
140
148
|
def chat(self) -> ChatResource:
|
|
141
149
|
from .resources.chat import ChatResource
|
|
@@ -405,6 +413,12 @@ class AsyncTogether(AsyncAPIClient):
|
|
|
405
413
|
|
|
406
414
|
self._default_stream_cls = AsyncStream
|
|
407
415
|
|
|
416
|
+
@cached_property
|
|
417
|
+
def beta(self) -> AsyncBetaResource:
|
|
418
|
+
from .resources.beta import AsyncBetaResource
|
|
419
|
+
|
|
420
|
+
return AsyncBetaResource(self)
|
|
421
|
+
|
|
408
422
|
@cached_property
|
|
409
423
|
def chat(self) -> AsyncChatResource:
|
|
410
424
|
from .resources.chat import AsyncChatResource
|
|
@@ -622,6 +636,12 @@ class TogetherWithRawResponse:
|
|
|
622
636
|
def __init__(self, client: Together) -> None:
|
|
623
637
|
self._client = client
|
|
624
638
|
|
|
639
|
+
@cached_property
|
|
640
|
+
def beta(self) -> beta.BetaResourceWithRawResponse:
|
|
641
|
+
from .resources.beta import BetaResourceWithRawResponse
|
|
642
|
+
|
|
643
|
+
return BetaResourceWithRawResponse(self._client.beta)
|
|
644
|
+
|
|
625
645
|
@cached_property
|
|
626
646
|
def chat(self) -> chat.ChatResourceWithRawResponse:
|
|
627
647
|
from .resources.chat import ChatResourceWithRawResponse
|
|
@@ -725,6 +745,12 @@ class AsyncTogetherWithRawResponse:
|
|
|
725
745
|
def __init__(self, client: AsyncTogether) -> None:
|
|
726
746
|
self._client = client
|
|
727
747
|
|
|
748
|
+
@cached_property
|
|
749
|
+
def beta(self) -> beta.AsyncBetaResourceWithRawResponse:
|
|
750
|
+
from .resources.beta import AsyncBetaResourceWithRawResponse
|
|
751
|
+
|
|
752
|
+
return AsyncBetaResourceWithRawResponse(self._client.beta)
|
|
753
|
+
|
|
728
754
|
@cached_property
|
|
729
755
|
def chat(self) -> chat.AsyncChatResourceWithRawResponse:
|
|
730
756
|
from .resources.chat import AsyncChatResourceWithRawResponse
|
|
@@ -828,6 +854,12 @@ class TogetherWithStreamedResponse:
|
|
|
828
854
|
def __init__(self, client: Together) -> None:
|
|
829
855
|
self._client = client
|
|
830
856
|
|
|
857
|
+
@cached_property
|
|
858
|
+
def beta(self) -> beta.BetaResourceWithStreamingResponse:
|
|
859
|
+
from .resources.beta import BetaResourceWithStreamingResponse
|
|
860
|
+
|
|
861
|
+
return BetaResourceWithStreamingResponse(self._client.beta)
|
|
862
|
+
|
|
831
863
|
@cached_property
|
|
832
864
|
def chat(self) -> chat.ChatResourceWithStreamingResponse:
|
|
833
865
|
from .resources.chat import ChatResourceWithStreamingResponse
|
|
@@ -931,6 +963,12 @@ class AsyncTogetherWithStreamedResponse:
|
|
|
931
963
|
def __init__(self, client: AsyncTogether) -> None:
|
|
932
964
|
self._client = client
|
|
933
965
|
|
|
966
|
+
@cached_property
|
|
967
|
+
def beta(self) -> beta.AsyncBetaResourceWithStreamingResponse:
|
|
968
|
+
from .resources.beta import AsyncBetaResourceWithStreamingResponse
|
|
969
|
+
|
|
970
|
+
return AsyncBetaResourceWithStreamingResponse(self._client.beta)
|
|
971
|
+
|
|
934
972
|
@cached_property
|
|
935
973
|
def chat(self) -> chat.AsyncChatResourceWithStreamingResponse:
|
|
936
974
|
from .resources.chat import AsyncChatResourceWithStreamingResponse
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Manually added to minimize breaking changes from V1
|
|
2
|
+
from ._constants import (
|
|
3
|
+
MAX_RETRY_DELAY as MAX_RETRY_DELAY,
|
|
4
|
+
DEFAULT_MAX_RETRIES,
|
|
5
|
+
INITIAL_RETRY_DELAY as INITIAL_RETRY_DELAY,
|
|
6
|
+
)
|
|
7
|
+
from .lib.constants import (
|
|
8
|
+
MIN_SAMPLES as MIN_SAMPLES,
|
|
9
|
+
DISABLE_TQDM as DISABLE_TQDM,
|
|
10
|
+
MAX_IMAGE_BYTES as MAX_IMAGE_BYTES,
|
|
11
|
+
NUM_BYTES_IN_GB as NUM_BYTES_IN_GB,
|
|
12
|
+
MAX_FILE_SIZE_GB as MAX_FILE_SIZE_GB,
|
|
13
|
+
MIN_PART_SIZE_MB as MIN_PART_SIZE_MB,
|
|
14
|
+
DOWNLOAD_BLOCK_SIZE as DOWNLOAD_BLOCK_SIZE,
|
|
15
|
+
MAX_MULTIPART_PARTS as MAX_MULTIPART_PARTS,
|
|
16
|
+
TARGET_PART_SIZE_MB as TARGET_PART_SIZE_MB,
|
|
17
|
+
MAX_CONCURRENT_PARTS as MAX_CONCURRENT_PARTS,
|
|
18
|
+
MAX_IMAGES_PER_EXAMPLE as MAX_IMAGES_PER_EXAMPLE,
|
|
19
|
+
MULTIPART_THRESHOLD_GB as MULTIPART_THRESHOLD_GB,
|
|
20
|
+
MAX_BASE64_IMAGE_LENGTH as MAX_BASE64_IMAGE_LENGTH,
|
|
21
|
+
MULTIPART_UPLOAD_TIMEOUT as MULTIPART_UPLOAD_TIMEOUT,
|
|
22
|
+
PARQUET_EXPECTED_COLUMNS as PARQUET_EXPECTED_COLUMNS,
|
|
23
|
+
REQUIRED_COLUMNS_MESSAGE as REQUIRED_COLUMNS_MESSAGE,
|
|
24
|
+
JSONL_REQUIRED_COLUMNS_MAP as JSONL_REQUIRED_COLUMNS_MAP,
|
|
25
|
+
POSSIBLE_ROLES_CONVERSATION as POSSIBLE_ROLES_CONVERSATION,
|
|
26
|
+
DatasetFormat as DatasetFormat,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
TIMEOUT_SECS = 600
|
|
30
|
+
MAX_SESSION_LIFETIME_SECS = 180
|
|
31
|
+
MAX_CONNECTION_RETRIES = 2
|
|
32
|
+
MAX_RETRIES = DEFAULT_MAX_RETRIES
|
|
33
|
+
|
|
34
|
+
BASE_URL = "https://api.together.xyz/v1"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
# Manually added to minimize breaking changes from V1
|
|
3
|
+
from ._exceptions import (
|
|
4
|
+
APIError as APIError,
|
|
5
|
+
RateLimitError as RateLimitError,
|
|
6
|
+
APITimeoutError,
|
|
7
|
+
BadRequestError,
|
|
8
|
+
APIConnectionError as APIConnectionError,
|
|
9
|
+
AuthenticationError as AuthenticationError,
|
|
10
|
+
APIResponseValidationError,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
Timeout = APITimeoutError
|
|
14
|
+
InvalidRequestError = BadRequestError
|
|
15
|
+
TogetherException = APIError
|
|
16
|
+
ResponseError = APIResponseValidationError
|