together 2.0.0a17__tar.gz → 2.0.0a19__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.0a19/.release-please-manifest.json +3 -0
- {together-2.0.0a17 → together-2.0.0a19}/CHANGELOG.md +50 -0
- {together-2.0.0a17 → together-2.0.0a19}/PKG-INFO +15 -14
- {together-2.0.0a17 → together-2.0.0a19}/README.md +10 -13
- {together-2.0.0a17 → together-2.0.0a19}/api.md +87 -29
- {together-2.0.0a17 → together-2.0.0a19}/examples/tokenize_data.py +1 -1
- {together-2.0.0a17 → together-2.0.0a19}/pyproject.toml +3 -1
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_base_client.py +5 -2
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_client.py +1 -77
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_compat.py +3 -3
- together-2.0.0a19/src/together/_utils/_json.py +35 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_version.py +1 -1
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/__init__.py +2 -0
- together-2.0.0a19/src/together/lib/cli/api/beta/jig/__init__.py +52 -0
- together-2.0.0a19/src/together/lib/cli/api/beta/jig/_config.py +170 -0
- together-2.0.0a19/src/together/lib/cli/api/beta/jig/jig.py +664 -0
- together-2.0.0a19/src/together/lib/cli/api/beta/jig/secrets.py +138 -0
- together-2.0.0a19/src/together/lib/cli/api/beta/jig/volumes.py +509 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/create.py +7 -3
- together-2.0.0a19/src/together/lib/cli/api/endpoints/hardware.py +71 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/models/upload.py +5 -1
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/__init__.py +0 -28
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/beta/__init__.py +14 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/beta/beta.py +32 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/beta/clusters/clusters.py +12 -12
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/beta/clusters/storage.py +10 -10
- together-2.0.0a19/src/together/resources/beta/jig/__init__.py +61 -0
- together-2.0.0a19/src/together/resources/beta/jig/jig.py +1004 -0
- together-2.0.0a19/src/together/resources/beta/jig/queue.py +482 -0
- together-2.0.0a19/src/together/resources/beta/jig/secrets.py +548 -0
- together-2.0.0a19/src/together/resources/beta/jig/volumes.py +514 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/chat/completions.py +10 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/endpoints.py +103 -1
- together-2.0.0a19/src/together/resources/models/__init__.py +33 -0
- {together-2.0.0a17/src/together/resources → together-2.0.0a19/src/together/resources/models}/models.py +41 -9
- together-2.0.0a19/src/together/resources/models/uploads.py +163 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/__init__.py +2 -4
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/__init__.py +6 -0
- together-2.0.0a19/src/together/types/beta/deployment.py +261 -0
- together-2.0.0a19/src/together/types/beta/deployment_logs.py +11 -0
- together-2.0.0a19/src/together/types/beta/jig/__init__.py +20 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_cancel_params.py +13 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_cancel_response.py +11 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_metrics_params.py +12 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_metrics_response.py +8 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_retrieve_params.py +15 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_retrieve_response.py +35 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_submit_params.py +19 -0
- together-2.0.0a19/src/together/types/beta/jig/queue_submit_response.py +25 -0
- together-2.0.0a19/src/together/types/beta/jig/secret.py +33 -0
- together-2.0.0a19/src/together/types/beta/jig/secret_create_params.py +34 -0
- together-2.0.0a19/src/together/types/beta/jig/secret_list_response.py +16 -0
- together-2.0.0a19/src/together/types/beta/jig/secret_update_params.py +34 -0
- together-2.0.0a19/src/together/types/beta/jig/volume.py +47 -0
- together-2.0.0a19/src/together/types/beta/jig/volume_create_params.py +34 -0
- together-2.0.0a19/src/together/types/beta/jig/volume_list_response.py +16 -0
- together-2.0.0a19/src/together/types/beta/jig/volume_update_params.py +34 -0
- together-2.0.0a19/src/together/types/beta/jig_deploy_params.py +150 -0
- together-2.0.0a19/src/together/types/beta/jig_list_response.py +16 -0
- together-2.0.0a19/src/together/types/beta/jig_retrieve_logs_params.py +12 -0
- together-2.0.0a19/src/together/types/beta/jig_update_params.py +141 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/completion_create_params.py +11 -0
- together-2.0.0a17/src/together/types/hardware_list_params.py → together-2.0.0a19/src/together/types/endpoint_list_hardware_params.py +2 -2
- together-2.0.0a17/src/together/types/hardware_list_response.py → together-2.0.0a19/src/together/types/endpoint_list_hardware_response.py +2 -2
- together-2.0.0a19/src/together/types/models/__init__.py +5 -0
- together-2.0.0a17/src/together/types/job_retrieve_response.py → together-2.0.0a19/src/together/types/models/upload_status_response.py +3 -3
- together-2.0.0a19/tests/api_resources/beta/jig/test_queue.py +315 -0
- together-2.0.0a19/tests/api_resources/beta/jig/test_secrets.py +412 -0
- together-2.0.0a19/tests/api_resources/beta/jig/test_volumes.py +426 -0
- together-2.0.0a19/tests/api_resources/beta/test_jig.py +614 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/chat/test_completions.py +4 -0
- together-2.0.0a19/tests/api_resources/code_interpreter/__init__.py +1 -0
- together-2.0.0a19/tests/api_resources/models/__init__.py +1 -0
- together-2.0.0a19/tests/api_resources/models/test_uploads.py +100 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_endpoints.py +65 -0
- together-2.0.0a19/tests/test_utils/test_json.py +126 -0
- {together-2.0.0a17 → together-2.0.0a19}/uv.lock +1 -1
- together-2.0.0a17/.release-please-manifest.json +0 -3
- together-2.0.0a17/src/together/lib/cli/api/endpoints/hardware.py +0 -40
- together-2.0.0a17/src/together/resources/hardware.py +0 -181
- together-2.0.0a17/src/together/resources/jobs.py +0 -214
- together-2.0.0a17/src/together/types/job_list_response.py +0 -47
- together-2.0.0a17/tests/api_resources/test_hardware.py +0 -88
- together-2.0.0a17/tests/api_resources/test_jobs.py +0 -150
- {together-2.0.0a17 → together-2.0.0a19}/.gitignore +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/CONTRIBUTING.md +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/LICENSE +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/SECURITY.md +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/bin/check-release-environment +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/bin/publish-pypi +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/.keep +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/coqa-small.jsonl +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/coqa.jsonl +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/embedding.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/file-upload.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/fine_tuning.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/image.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/models.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/examples/streaming.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/release-please-config.json +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/requirements-dev.lock +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_constants.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_exceptions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_models.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_qs.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_resource.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_streaming.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_types.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_compat.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_datetime_parse.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_logs.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_proxy.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_reflection.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_resources_proxy.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_streams.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_sync.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_transform.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_typing.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/_utils/_utils.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/constants.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/error.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/.keep +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/_google_colab.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/_utils.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/create.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/delete.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/get_credentials.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/list_regions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/retrieve.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/storage/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/storage/create.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/storage/delete.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/storage/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/storage/retrieve.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/beta/clusters/update.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/availability_zones.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/delete.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/retrieve.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/start.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/stop.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/endpoints/update.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/evals/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/evals/create.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/evals/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/evals/retrieve.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/evals/status.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/check.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/delete.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/retrieve.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/retrieve_content.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/files/upload.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/cancel.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/create.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/delete.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/download.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/list_checkpoints.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/list_events.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/fine_tuning/retrieve.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/models/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/cli/api/models/list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/constants.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/resources/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/resources/files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/resources/fine_tuning.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/types/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/types/error.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/types/fine_tuning.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/utils/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/utils/_log.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/utils/files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/utils/serializer.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/lib/utils/tools.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/py.typed +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/audio/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/audio/audio.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/audio/speech.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/audio/transcriptions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/audio/translations.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/audio/voices.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/batches.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/beta/clusters/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/chat/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/chat/chat.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/code_interpreter/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/code_interpreter/code_interpreter.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/code_interpreter/sessions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/completions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/embeddings.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/evals.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/fine_tuning.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/images.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/rerank.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/resources/videos.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/speech_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/transcription_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/transcription_create_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/translation_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/translation_create_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio/voice_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/audio_speech_stream_chunk.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/autoscaling.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/autoscaling_param.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/batch_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/batch_create_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/batch_job.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/batch_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/cluster.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/cluster_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/cluster_delete_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/cluster_list_regions_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/cluster_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/cluster_update_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/clusters/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/clusters/cluster_storage.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/clusters/storage_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/clusters/storage_delete_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/clusters/storage_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/beta/clusters/storage_update_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion_chunk.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion_structured_message_image_url_param.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion_structured_message_text_param.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion_structured_message_video_url_param.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion_usage.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat/chat_completion_warning.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/chat_completions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/code_interpreter/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/code_interpreter/session_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/code_interpreter_execute_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/completion.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/completion_chunk.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/completion_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/dedicated_endpoint.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/embedding.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/embedding_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/endpoint_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/endpoint_list_avzones_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/endpoint_list_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/endpoint_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/endpoint_update_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/endpoints.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/eval_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/eval_create_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/eval_list_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/eval_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/eval_status_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/evaluation_job.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/execute_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/file_delete_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/file_list.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/file_purpose.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/file_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/file_type.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_cancel_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_content_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_delete_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_delete_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_estimate_price_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_estimate_price_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_list_checkpoints_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_list_events_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/fine_tuning_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/finetune.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/finetune_event.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/finetune_event_type.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/finetune_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/image_data_b64.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/image_data_url.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/image_file.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/image_generate_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/log_probs.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/model_list_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/model_list_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/model_object.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/model_upload_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/model_upload_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/models.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/rerank_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/rerank_create_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/tool_choice.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/tool_choice_param.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/tools_param.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/training_method_dpo.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/training_method_sft.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/video_create_params.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/src/together/types/video_job.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/audio/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/audio/test_speech.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/audio/test_transcriptions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/audio/test_translations.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/audio/test_voices.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/beta/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/beta/clusters/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/beta/clusters/test_storage.py +0 -0
- {together-2.0.0a17/tests/api_resources/chat → together-2.0.0a19/tests/api_resources/beta/jig}/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/beta/test_clusters.py +0 -0
- {together-2.0.0a17/tests/api_resources/code_interpreter → together-2.0.0a19/tests/api_resources/chat}/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/code_interpreter/test_sessions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_batches.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_code_interpreter.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_completions.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_embeddings.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_evals.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_fine_tuning.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_images.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_models.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_rerank.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/api_resources/test_videos.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/conftest.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/constants.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/resources/__init__.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/resources/generate_hyperparameters.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/resources/test_completion.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/resources/test_completion_stream.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/integration/resources/test_files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/sample_file.txt +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_cli_utils.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_client.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_deepcopy.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_extract_files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_files.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_models.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_qs.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_required_args.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_response.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_streaming.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_transform.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_utils/test_datetime_parse.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_utils/test_proxy.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/test_utils/test_typing.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_async_client.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_client.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_code_interpreter.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_files_checks.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_files_resource.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_fine_tuning_resources.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_imports.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_multipart_upload_manager.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_preference_openai.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/unit/test_video_url.py +0 -0
- {together-2.0.0a17 → together-2.0.0a19}/tests/utils.py +0 -0
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0-alpha.19 (2026-02-03)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.0.0-alpha.18...v2.0.0-alpha.19](https://github.com/togethercomputer/together-py/compare/v2.0.0-alpha.18...v2.0.0-alpha.19)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* internal: Add code samples to deployments features ([eaa20a5](https://github.com/togethercomputer/together-py/commit/eaa20a59aa3bf1d48026f0018060ef6b34d7b50d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **api:** move hardware listing feature under endpoints resource. ([ac6671a](https://github.com/togethercomputer/together-py/commit/ac6671a36b1c41374e7d491a37e7086718972e20))
|
|
15
|
+
* Fix CLI ([5d89415](https://github.com/togethercomputer/together-py/commit/5d8941523300914c62e4f97d354cdff664445517))
|
|
16
|
+
* run internal foramt ([45ef6b3](https://github.com/togethercomputer/together-py/commit/45ef6b3d97a49108f02eeeb4ec856bd7c352fd75))
|
|
17
|
+
|
|
18
|
+
## 2.0.0-alpha.18 (2026-01-31)
|
|
19
|
+
|
|
20
|
+
Full Changelog: [v2.0.0-alpha.17...v2.0.0-alpha.18](https://github.com/togethercomputer/together-py/compare/v2.0.0-alpha.17...v2.0.0-alpha.18)
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* Add chat completion support for reasoning.enabled ([7fba349](https://github.com/togethercomputer/together-py/commit/7fba349c1bde34ace5ca38c0728479f054518e04))
|
|
25
|
+
* **api:** Add API for listing deployments ([298d447](https://github.com/togethercomputer/together-py/commit/298d4475208fb24e1373fa7449c0716768d5501d))
|
|
26
|
+
* **api:** Add beta sdks for jig features ([c3ac883](https://github.com/togethercomputer/together-py/commit/c3ac883f8ffe62d2c1b660e3a62fc82891e63dac))
|
|
27
|
+
* **api:** Move jobs apis to nest under model uploads per their use case ([368c003](https://github.com/togethercomputer/together-py/commit/368c003ec61e8cea2ec995ba9889d3cf7ac21328))
|
|
28
|
+
* **api:** Move queue out of jig namespace ([ebc1498](https://github.com/togethercomputer/together-py/commit/ebc1498125e7b95f2726cfb37a4324aadcf40f8d))
|
|
29
|
+
* **api:** Update Jig types and add retrieve_logs api to jig ([76a3c1a](https://github.com/togethercomputer/together-py/commit/76a3c1abccf8bb1efaebd192a68fe31785b568cf))
|
|
30
|
+
* **cli:** enhance hardware command to display availability status ([#223](https://github.com/togethercomputer/together-py/issues/223)) ([e7cf8a3](https://github.com/togethercomputer/together-py/commit/e7cf8a30c6a1d46f10ea5049f51e969be6f8418f))
|
|
31
|
+
* **client:** add custom JSON encoder for extended type support ([036a0ea](https://github.com/togethercomputer/together-py/commit/036a0eaba07c3cca56e9dbec965e1cce2f8b848a))
|
|
32
|
+
* internal: Update to new cluster api routing ([54af0bd](https://github.com/togethercomputer/together-py/commit/54af0bdf4076e5ff02f0475547a4b1d2f7393c46))
|
|
33
|
+
* move byoc features under /deployments route ([d70e2e9](https://github.com/togethercomputer/together-py/commit/d70e2e9c3c12997935a34cb4a63a26e315e0c799))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* Avoid crashing when uploading a model which weights already exist ([#226](https://github.com/togethercomputer/together-py/issues/226)) ([5a9095c](https://github.com/togethercomputer/together-py/commit/5a9095c91da5de8333e366e88f6960b428177d07))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Chores
|
|
42
|
+
|
|
43
|
+
* **api:** Improve type names for jig volumes and logs ([b256c61](https://github.com/togethercomputer/together-py/commit/b256c61f601d67a0abee1dbc44e9851d52014d0d))
|
|
44
|
+
* **api:** Move Queue SDK methods into Jig namespace ([43179e1](https://github.com/togethercomputer/together-py/commit/43179e1ee8451cc3bcb8430c2bc35148309b82db))
|
|
45
|
+
* **api:** Rename jig queue apis ([4b466d6](https://github.com/togethercomputer/together-py/commit/4b466d6079071fd840880337b20c4d34a3a5cf45))
|
|
46
|
+
* **ci:** upgrade `actions/github-script` ([c8668a1](https://github.com/togethercomputer/together-py/commit/c8668a1424fbfcd37d893d414d4dcd0307f5aac4))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Documentation
|
|
50
|
+
|
|
51
|
+
* **axle-queue:** added axle-queue endpoints ([4e60b09](https://github.com/togethercomputer/together-py/commit/4e60b096128cbfef4769195a9b00cf0236e5052c))
|
|
52
|
+
|
|
3
53
|
## 2.0.0-alpha.17 (2026-01-21)
|
|
4
54
|
|
|
5
55
|
Full Changelog: [v2.0.0-alpha.16...v2.0.0-alpha.17](https://github.com/togethercomputer/together-py/compare/v2.0.0-alpha.16...v2.0.0-alpha.17)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: together
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a19
|
|
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
|
|
@@ -32,11 +32,15 @@ Requires-Dist: pydantic<3,>=1.9.0
|
|
|
32
32
|
Requires-Dist: rich>=13.7.1
|
|
33
33
|
Requires-Dist: sniffio
|
|
34
34
|
Requires-Dist: tabulate>=0.9.0
|
|
35
|
+
Requires-Dist: tomli>=2.0.0; python_version < '3.11'
|
|
35
36
|
Requires-Dist: tqdm>=4.67.1
|
|
36
37
|
Requires-Dist: types-pyyaml>=6.0.12.20250915
|
|
37
38
|
Requires-Dist: types-tabulate>=0.9.0.20240106
|
|
38
39
|
Requires-Dist: types-tqdm>=4.67.0.20250516
|
|
39
40
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
41
|
+
Provides-Extra: aiofiles
|
|
42
|
+
Requires-Dist: aiofiles>=25.0.0; extra == 'aiofiles'
|
|
43
|
+
Requires-Dist: types-aiofiles; extra == 'aiofiles'
|
|
40
44
|
Provides-Extra: aiohttp
|
|
41
45
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
42
46
|
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
@@ -235,20 +239,17 @@ from together import Together
|
|
|
235
239
|
|
|
236
240
|
client = Together()
|
|
237
241
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
"size_tib": 0,
|
|
248
|
-
"volume_name": "volume_name",
|
|
249
|
-
},
|
|
242
|
+
chat_completion = client.chat.completions.create(
|
|
243
|
+
messages=[
|
|
244
|
+
{
|
|
245
|
+
"content": "content",
|
|
246
|
+
"role": "system",
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
|
|
250
|
+
reasoning={},
|
|
250
251
|
)
|
|
251
|
-
print(
|
|
252
|
+
print(chat_completion.reasoning)
|
|
252
253
|
```
|
|
253
254
|
|
|
254
255
|
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.
|
|
@@ -186,20 +186,17 @@ from together import Together
|
|
|
186
186
|
|
|
187
187
|
client = Together()
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"size_tib": 0,
|
|
199
|
-
"volume_name": "volume_name",
|
|
200
|
-
},
|
|
189
|
+
chat_completion = client.chat.completions.create(
|
|
190
|
+
messages=[
|
|
191
|
+
{
|
|
192
|
+
"content": "content",
|
|
193
|
+
"role": "system",
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
|
|
197
|
+
reasoning={},
|
|
201
198
|
)
|
|
202
|
-
print(
|
|
199
|
+
print(chat_completion.reasoning)
|
|
203
200
|
```
|
|
204
201
|
|
|
205
202
|
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,5 +1,74 @@
|
|
|
1
1
|
# Beta
|
|
2
2
|
|
|
3
|
+
## Jig
|
|
4
|
+
|
|
5
|
+
Types:
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
from together.types.beta import Deployment, DeploymentLogs, JigListResponse
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Methods:
|
|
12
|
+
|
|
13
|
+
- <code title="get /deployments/{id}">client.beta.jig.<a href="./src/together/resources/beta/jig/jig.py">retrieve</a>(id) -> <a href="./src/together/types/beta/deployment.py">Deployment</a></code>
|
|
14
|
+
- <code title="patch /deployments/{id}">client.beta.jig.<a href="./src/together/resources/beta/jig/jig.py">update</a>(id, \*\*<a href="src/together/types/beta/jig_update_params.py">params</a>) -> <a href="./src/together/types/beta/deployment.py">Deployment</a></code>
|
|
15
|
+
- <code title="get /deployments">client.beta.jig.<a href="./src/together/resources/beta/jig/jig.py">list</a>() -> <a href="./src/together/types/beta/jig_list_response.py">JigListResponse</a></code>
|
|
16
|
+
- <code title="post /deployments">client.beta.jig.<a href="./src/together/resources/beta/jig/jig.py">deploy</a>(\*\*<a href="src/together/types/beta/jig_deploy_params.py">params</a>) -> <a href="./src/together/types/beta/deployment.py">Deployment</a></code>
|
|
17
|
+
- <code title="delete /deployments/{id}">client.beta.jig.<a href="./src/together/resources/beta/jig/jig.py">destroy</a>(id) -> object</code>
|
|
18
|
+
- <code title="get /deployments/{id}/logs">client.beta.jig.<a href="./src/together/resources/beta/jig/jig.py">retrieve_logs</a>(id, \*\*<a href="src/together/types/beta/jig_retrieve_logs_params.py">params</a>) -> <a href="./src/together/types/beta/deployment_logs.py">DeploymentLogs</a></code>
|
|
19
|
+
|
|
20
|
+
### Queue
|
|
21
|
+
|
|
22
|
+
Types:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from together.types.beta.jig import (
|
|
26
|
+
QueueRetrieveResponse,
|
|
27
|
+
QueueCancelResponse,
|
|
28
|
+
QueueMetricsResponse,
|
|
29
|
+
QueueSubmitResponse,
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Methods:
|
|
34
|
+
|
|
35
|
+
- <code title="get /queue/status">client.beta.jig.queue.<a href="./src/together/resources/beta/jig/queue.py">retrieve</a>(\*\*<a href="src/together/types/beta/jig/queue_retrieve_params.py">params</a>) -> <a href="./src/together/types/beta/jig/queue_retrieve_response.py">QueueRetrieveResponse</a></code>
|
|
36
|
+
- <code title="post /queue/cancel">client.beta.jig.queue.<a href="./src/together/resources/beta/jig/queue.py">cancel</a>(\*\*<a href="src/together/types/beta/jig/queue_cancel_params.py">params</a>) -> <a href="./src/together/types/beta/jig/queue_cancel_response.py">QueueCancelResponse</a></code>
|
|
37
|
+
- <code title="get /queue/metrics">client.beta.jig.queue.<a href="./src/together/resources/beta/jig/queue.py">metrics</a>(\*\*<a href="src/together/types/beta/jig/queue_metrics_params.py">params</a>) -> <a href="./src/together/types/beta/jig/queue_metrics_response.py">QueueMetricsResponse</a></code>
|
|
38
|
+
- <code title="post /queue/submit">client.beta.jig.queue.<a href="./src/together/resources/beta/jig/queue.py">submit</a>(\*\*<a href="src/together/types/beta/jig/queue_submit_params.py">params</a>) -> <a href="./src/together/types/beta/jig/queue_submit_response.py">QueueSubmitResponse</a></code>
|
|
39
|
+
|
|
40
|
+
### Volumes
|
|
41
|
+
|
|
42
|
+
Types:
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
from together.types.beta.jig import Volume, VolumeListResponse
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Methods:
|
|
49
|
+
|
|
50
|
+
- <code title="post /deployments/storage/volumes">client.beta.jig.volumes.<a href="./src/together/resources/beta/jig/volumes.py">create</a>(\*\*<a href="src/together/types/beta/jig/volume_create_params.py">params</a>) -> <a href="./src/together/types/beta/jig/volume.py">Volume</a></code>
|
|
51
|
+
- <code title="get /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/together/resources/beta/jig/volumes.py">retrieve</a>(id) -> <a href="./src/together/types/beta/jig/volume.py">Volume</a></code>
|
|
52
|
+
- <code title="patch /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/together/resources/beta/jig/volumes.py">update</a>(id, \*\*<a href="src/together/types/beta/jig/volume_update_params.py">params</a>) -> <a href="./src/together/types/beta/jig/volume.py">Volume</a></code>
|
|
53
|
+
- <code title="get /deployments/storage/volumes">client.beta.jig.volumes.<a href="./src/together/resources/beta/jig/volumes.py">list</a>() -> <a href="./src/together/types/beta/jig/volume_list_response.py">VolumeListResponse</a></code>
|
|
54
|
+
- <code title="delete /deployments/storage/volumes/{id}">client.beta.jig.volumes.<a href="./src/together/resources/beta/jig/volumes.py">delete</a>(id) -> object</code>
|
|
55
|
+
|
|
56
|
+
### Secrets
|
|
57
|
+
|
|
58
|
+
Types:
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from together.types.beta.jig import Secret, SecretListResponse
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Methods:
|
|
65
|
+
|
|
66
|
+
- <code title="post /deployments/secrets">client.beta.jig.secrets.<a href="./src/together/resources/beta/jig/secrets.py">create</a>(\*\*<a href="src/together/types/beta/jig/secret_create_params.py">params</a>) -> <a href="./src/together/types/beta/jig/secret.py">Secret</a></code>
|
|
67
|
+
- <code title="get /deployments/secrets/{id}">client.beta.jig.secrets.<a href="./src/together/resources/beta/jig/secrets.py">retrieve</a>(id) -> <a href="./src/together/types/beta/jig/secret.py">Secret</a></code>
|
|
68
|
+
- <code title="patch /deployments/secrets/{id}">client.beta.jig.secrets.<a href="./src/together/resources/beta/jig/secrets.py">update</a>(id, \*\*<a href="src/together/types/beta/jig/secret_update_params.py">params</a>) -> <a href="./src/together/types/beta/jig/secret.py">Secret</a></code>
|
|
69
|
+
- <code title="get /deployments/secrets">client.beta.jig.secrets.<a href="./src/together/resources/beta/jig/secrets.py">list</a>() -> <a href="./src/together/types/beta/jig/secret_list_response.py">SecretListResponse</a></code>
|
|
70
|
+
- <code title="delete /deployments/secrets/{id}">client.beta.jig.secrets.<a href="./src/together/resources/beta/jig/secrets.py">delete</a>(id) -> object</code>
|
|
71
|
+
|
|
3
72
|
## Clusters
|
|
4
73
|
|
|
5
74
|
Types:
|
|
@@ -15,12 +84,12 @@ from together.types.beta import (
|
|
|
15
84
|
|
|
16
85
|
Methods:
|
|
17
86
|
|
|
18
|
-
- <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.py">Cluster</a></code>
|
|
19
|
-
- <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>
|
|
20
|
-
- <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.py">Cluster</a></code>
|
|
21
|
-
- <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>
|
|
22
|
-
- <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>
|
|
23
|
-
- <code title="get /
|
|
87
|
+
- <code title="post /compute/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.py">Cluster</a></code>
|
|
88
|
+
- <code title="get /compute/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>
|
|
89
|
+
- <code title="put /compute/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.py">Cluster</a></code>
|
|
90
|
+
- <code title="get /compute/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>
|
|
91
|
+
- <code title="delete /compute/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>
|
|
92
|
+
- <code title="get /compute/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>
|
|
24
93
|
|
|
25
94
|
### Storage
|
|
26
95
|
|
|
@@ -32,11 +101,11 @@ from together.types.beta.clusters import ClusterStorage, StorageListResponse, St
|
|
|
32
101
|
|
|
33
102
|
Methods:
|
|
34
103
|
|
|
35
|
-
- <code title="post /clusters/
|
|
36
|
-
- <code title="get /clusters/
|
|
37
|
-
- <code title="put /clusters/
|
|
38
|
-
- <code title="get /clusters/
|
|
39
|
-
- <code title="delete /clusters/
|
|
104
|
+
- <code title="post /compute/clusters/storage/volumes">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/cluster_storage.py">ClusterStorage</a></code>
|
|
105
|
+
- <code title="get /compute/clusters/storage/volumes/{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>
|
|
106
|
+
- <code title="put /compute/clusters/storage/volumes">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>
|
|
107
|
+
- <code title="get /compute/clusters/storage/volumes">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>
|
|
108
|
+
- <code title="delete /compute/clusters/storage/volumes/{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>
|
|
40
109
|
|
|
41
110
|
# Chat
|
|
42
111
|
|
|
@@ -244,21 +313,20 @@ from together.types import ModelObject, ModelListResponse, ModelUploadResponse
|
|
|
244
313
|
|
|
245
314
|
Methods:
|
|
246
315
|
|
|
247
|
-
- <code title="get /models">client.models.<a href="./src/together/resources/models.py">list</a>(\*\*<a href="src/together/types/model_list_params.py">params</a>) -> <a href="./src/together/types/model_list_response.py">ModelListResponse</a></code>
|
|
248
|
-
- <code title="post /models">client.models.<a href="./src/together/resources/models.py">upload</a>(\*\*<a href="src/together/types/model_upload_params.py">params</a>) -> <a href="./src/together/types/model_upload_response.py">ModelUploadResponse</a></code>
|
|
316
|
+
- <code title="get /models">client.models.<a href="./src/together/resources/models/models.py">list</a>(\*\*<a href="src/together/types/model_list_params.py">params</a>) -> <a href="./src/together/types/model_list_response.py">ModelListResponse</a></code>
|
|
317
|
+
- <code title="post /models">client.models.<a href="./src/together/resources/models/models.py">upload</a>(\*\*<a href="src/together/types/model_upload_params.py">params</a>) -> <a href="./src/together/types/model_upload_response.py">ModelUploadResponse</a></code>
|
|
249
318
|
|
|
250
|
-
|
|
319
|
+
## Uploads
|
|
251
320
|
|
|
252
321
|
Types:
|
|
253
322
|
|
|
254
323
|
```python
|
|
255
|
-
from together.types import
|
|
324
|
+
from together.types.models import UploadStatusResponse
|
|
256
325
|
```
|
|
257
326
|
|
|
258
327
|
Methods:
|
|
259
328
|
|
|
260
|
-
- <code title="get /jobs/{jobId}">client.
|
|
261
|
-
- <code title="get /jobs">client.jobs.<a href="./src/together/resources/jobs.py">list</a>() -> <a href="./src/together/types/job_list_response.py">JobListResponse</a></code>
|
|
329
|
+
- <code title="get /jobs/{jobId}">client.models.uploads.<a href="./src/together/resources/models/uploads.py">status</a>(job_id) -> <a href="./src/together/types/models/upload_status_response.py">UploadStatusResponse</a></code>
|
|
262
330
|
|
|
263
331
|
# Endpoints
|
|
264
332
|
|
|
@@ -270,6 +338,7 @@ from together.types import (
|
|
|
270
338
|
DedicatedEndpoint,
|
|
271
339
|
EndpointListResponse,
|
|
272
340
|
EndpointListAvzonesResponse,
|
|
341
|
+
EndpointListHardwareResponse,
|
|
273
342
|
)
|
|
274
343
|
```
|
|
275
344
|
|
|
@@ -281,18 +350,7 @@ Methods:
|
|
|
281
350
|
- <code title="get /endpoints">client.endpoints.<a href="./src/together/resources/endpoints.py">list</a>(\*\*<a href="src/together/types/endpoint_list_params.py">params</a>) -> <a href="./src/together/types/endpoint_list_response.py">EndpointListResponse</a></code>
|
|
282
351
|
- <code title="delete /endpoints/{endpointId}">client.endpoints.<a href="./src/together/resources/endpoints.py">delete</a>(endpoint_id) -> None</code>
|
|
283
352
|
- <code title="get /clusters/availability-zones">client.endpoints.<a href="./src/together/resources/endpoints.py">list_avzones</a>() -> <a href="./src/together/types/endpoint_list_avzones_response.py">EndpointListAvzonesResponse</a></code>
|
|
284
|
-
|
|
285
|
-
# Hardware
|
|
286
|
-
|
|
287
|
-
Types:
|
|
288
|
-
|
|
289
|
-
```python
|
|
290
|
-
from together.types import HardwareListResponse
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
Methods:
|
|
294
|
-
|
|
295
|
-
- <code title="get /hardware">client.hardware.<a href="./src/together/resources/hardware.py">list</a>(\*\*<a href="src/together/types/hardware_list_params.py">params</a>) -> <a href="./src/together/types/hardware_list_response.py">HardwareListResponse</a></code>
|
|
353
|
+
- <code title="get /hardware">client.endpoints.<a href="./src/together/resources/endpoints.py">list_hardware</a>(\*\*<a href="src/together/types/endpoint_list_hardware_params.py">params</a>) -> <a href="./src/together/types/endpoint_list_hardware_response.py">EndpointListHardwareResponse</a></code>
|
|
296
354
|
|
|
297
355
|
# Rerank
|
|
298
356
|
|
|
@@ -158,7 +158,7 @@ def process_data(args: argparse.Namespace) -> None:
|
|
|
158
158
|
prompt_field = args.prompt_field
|
|
159
159
|
completion_field = args.completion_field
|
|
160
160
|
separator = args.separator
|
|
161
|
-
|
|
161
|
+
|
|
162
162
|
if prompt_field in dataset.column_names and completion_field in dataset.column_names:
|
|
163
163
|
if "text" not in dataset.column_names:
|
|
164
164
|
dataset = dataset.map(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "together"
|
|
3
|
-
version = "2.0.0-alpha.
|
|
3
|
+
version = "2.0.0-alpha.19"
|
|
4
4
|
description = "The official Python library for the together API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -24,6 +24,7 @@ dependencies = [
|
|
|
24
24
|
"types-tqdm>=4.67.0.20250516",
|
|
25
25
|
"filelock>=3.13.1",
|
|
26
26
|
"types-pyyaml>=6.0.12.20250915",
|
|
27
|
+
"tomli>=2.0.0; python_version < '3.11'",
|
|
27
28
|
]
|
|
28
29
|
|
|
29
30
|
requires-python = ">= 3.9"
|
|
@@ -51,6 +52,7 @@ Repository = "https://github.com/togethercomputer/together-py"
|
|
|
51
52
|
|
|
52
53
|
[project.optional-dependencies]
|
|
53
54
|
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
|
|
55
|
+
aiofiles = ["aiofiles>=25.0.0", "types-aiofiles"]
|
|
54
56
|
pyarrow = ["pyarrow>=16.1.0", "pyarrow-stubs>=10.0.1.7"]
|
|
55
57
|
cli = ["PyYAML"]
|
|
56
58
|
|
|
@@ -86,6 +86,7 @@ from ._exceptions import (
|
|
|
86
86
|
APIConnectionError,
|
|
87
87
|
APIResponseValidationError,
|
|
88
88
|
)
|
|
89
|
+
from ._utils._json import openapi_dumps
|
|
89
90
|
|
|
90
91
|
log: logging.Logger = logging.getLogger(__name__)
|
|
91
92
|
|
|
@@ -554,8 +555,10 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
554
555
|
kwargs["content"] = options.content
|
|
555
556
|
elif isinstance(json_data, bytes):
|
|
556
557
|
kwargs["content"] = json_data
|
|
557
|
-
|
|
558
|
-
|
|
558
|
+
elif not files:
|
|
559
|
+
# Don't set content when JSON is sent as multipart/form-data,
|
|
560
|
+
# since httpx's content param overrides other body arguments
|
|
561
|
+
kwargs["content"] = openapi_dumps(json_data) if is_given(json_data) and json_data is not None else None
|
|
559
562
|
kwargs["files"] = files
|
|
560
563
|
else:
|
|
561
564
|
headers.pop("Content-Type", None)
|
|
@@ -37,7 +37,6 @@ if TYPE_CHECKING:
|
|
|
37
37
|
from .resources import (
|
|
38
38
|
beta,
|
|
39
39
|
chat,
|
|
40
|
-
jobs,
|
|
41
40
|
audio,
|
|
42
41
|
evals,
|
|
43
42
|
files,
|
|
@@ -46,22 +45,18 @@ if TYPE_CHECKING:
|
|
|
46
45
|
rerank,
|
|
47
46
|
videos,
|
|
48
47
|
batches,
|
|
49
|
-
hardware,
|
|
50
48
|
endpoints,
|
|
51
49
|
embeddings,
|
|
52
50
|
completions,
|
|
53
51
|
fine_tuning,
|
|
54
52
|
code_interpreter,
|
|
55
53
|
)
|
|
56
|
-
from .resources.jobs import JobsResource, AsyncJobsResource
|
|
57
54
|
from .resources.evals import EvalsResource, AsyncEvalsResource
|
|
58
55
|
from .resources.files import FilesResource, AsyncFilesResource
|
|
59
56
|
from .resources.images import ImagesResource, AsyncImagesResource
|
|
60
|
-
from .resources.models import ModelsResource, AsyncModelsResource
|
|
61
57
|
from .resources.rerank import RerankResource, AsyncRerankResource
|
|
62
58
|
from .resources.videos import VideosResource, AsyncVideosResource
|
|
63
59
|
from .resources.batches import BatchesResource, AsyncBatchesResource
|
|
64
|
-
from .resources.hardware import HardwareResource, AsyncHardwareResource
|
|
65
60
|
from .resources.beta.beta import BetaResource, AsyncBetaResource
|
|
66
61
|
from .resources.chat.chat import ChatResource, AsyncChatResource
|
|
67
62
|
from .resources.endpoints import EndpointsResource, AsyncEndpointsResource
|
|
@@ -69,6 +64,7 @@ if TYPE_CHECKING:
|
|
|
69
64
|
from .resources.audio.audio import AudioResource, AsyncAudioResource
|
|
70
65
|
from .resources.completions import CompletionsResource, AsyncCompletionsResource
|
|
71
66
|
from .resources.fine_tuning import FineTuningResource, AsyncFineTuningResource
|
|
67
|
+
from .resources.models.models import ModelsResource, AsyncModelsResource
|
|
72
68
|
from .resources.code_interpreter.code_interpreter import CodeInterpreterResource, AsyncCodeInterpreterResource
|
|
73
69
|
|
|
74
70
|
__all__ = [
|
|
@@ -209,24 +205,12 @@ class Together(SyncAPIClient):
|
|
|
209
205
|
|
|
210
206
|
return ModelsResource(self)
|
|
211
207
|
|
|
212
|
-
@cached_property
|
|
213
|
-
def jobs(self) -> JobsResource:
|
|
214
|
-
from .resources.jobs import JobsResource
|
|
215
|
-
|
|
216
|
-
return JobsResource(self)
|
|
217
|
-
|
|
218
208
|
@cached_property
|
|
219
209
|
def endpoints(self) -> EndpointsResource:
|
|
220
210
|
from .resources.endpoints import EndpointsResource
|
|
221
211
|
|
|
222
212
|
return EndpointsResource(self)
|
|
223
213
|
|
|
224
|
-
@cached_property
|
|
225
|
-
def hardware(self) -> HardwareResource:
|
|
226
|
-
from .resources.hardware import HardwareResource
|
|
227
|
-
|
|
228
|
-
return HardwareResource(self)
|
|
229
|
-
|
|
230
214
|
@cached_property
|
|
231
215
|
def rerank(self) -> RerankResource:
|
|
232
216
|
from .resources.rerank import RerankResource
|
|
@@ -486,24 +470,12 @@ class AsyncTogether(AsyncAPIClient):
|
|
|
486
470
|
|
|
487
471
|
return AsyncModelsResource(self)
|
|
488
472
|
|
|
489
|
-
@cached_property
|
|
490
|
-
def jobs(self) -> AsyncJobsResource:
|
|
491
|
-
from .resources.jobs import AsyncJobsResource
|
|
492
|
-
|
|
493
|
-
return AsyncJobsResource(self)
|
|
494
|
-
|
|
495
473
|
@cached_property
|
|
496
474
|
def endpoints(self) -> AsyncEndpointsResource:
|
|
497
475
|
from .resources.endpoints import AsyncEndpointsResource
|
|
498
476
|
|
|
499
477
|
return AsyncEndpointsResource(self)
|
|
500
478
|
|
|
501
|
-
@cached_property
|
|
502
|
-
def hardware(self) -> AsyncHardwareResource:
|
|
503
|
-
from .resources.hardware import AsyncHardwareResource
|
|
504
|
-
|
|
505
|
-
return AsyncHardwareResource(self)
|
|
506
|
-
|
|
507
479
|
@cached_property
|
|
508
480
|
def rerank(self) -> AsyncRerankResource:
|
|
509
481
|
from .resources.rerank import AsyncRerankResource
|
|
@@ -709,24 +681,12 @@ class TogetherWithRawResponse:
|
|
|
709
681
|
|
|
710
682
|
return ModelsResourceWithRawResponse(self._client.models)
|
|
711
683
|
|
|
712
|
-
@cached_property
|
|
713
|
-
def jobs(self) -> jobs.JobsResourceWithRawResponse:
|
|
714
|
-
from .resources.jobs import JobsResourceWithRawResponse
|
|
715
|
-
|
|
716
|
-
return JobsResourceWithRawResponse(self._client.jobs)
|
|
717
|
-
|
|
718
684
|
@cached_property
|
|
719
685
|
def endpoints(self) -> endpoints.EndpointsResourceWithRawResponse:
|
|
720
686
|
from .resources.endpoints import EndpointsResourceWithRawResponse
|
|
721
687
|
|
|
722
688
|
return EndpointsResourceWithRawResponse(self._client.endpoints)
|
|
723
689
|
|
|
724
|
-
@cached_property
|
|
725
|
-
def hardware(self) -> hardware.HardwareResourceWithRawResponse:
|
|
726
|
-
from .resources.hardware import HardwareResourceWithRawResponse
|
|
727
|
-
|
|
728
|
-
return HardwareResourceWithRawResponse(self._client.hardware)
|
|
729
|
-
|
|
730
690
|
@cached_property
|
|
731
691
|
def rerank(self) -> rerank.RerankResourceWithRawResponse:
|
|
732
692
|
from .resources.rerank import RerankResourceWithRawResponse
|
|
@@ -818,24 +778,12 @@ class AsyncTogetherWithRawResponse:
|
|
|
818
778
|
|
|
819
779
|
return AsyncModelsResourceWithRawResponse(self._client.models)
|
|
820
780
|
|
|
821
|
-
@cached_property
|
|
822
|
-
def jobs(self) -> jobs.AsyncJobsResourceWithRawResponse:
|
|
823
|
-
from .resources.jobs import AsyncJobsResourceWithRawResponse
|
|
824
|
-
|
|
825
|
-
return AsyncJobsResourceWithRawResponse(self._client.jobs)
|
|
826
|
-
|
|
827
781
|
@cached_property
|
|
828
782
|
def endpoints(self) -> endpoints.AsyncEndpointsResourceWithRawResponse:
|
|
829
783
|
from .resources.endpoints import AsyncEndpointsResourceWithRawResponse
|
|
830
784
|
|
|
831
785
|
return AsyncEndpointsResourceWithRawResponse(self._client.endpoints)
|
|
832
786
|
|
|
833
|
-
@cached_property
|
|
834
|
-
def hardware(self) -> hardware.AsyncHardwareResourceWithRawResponse:
|
|
835
|
-
from .resources.hardware import AsyncHardwareResourceWithRawResponse
|
|
836
|
-
|
|
837
|
-
return AsyncHardwareResourceWithRawResponse(self._client.hardware)
|
|
838
|
-
|
|
839
787
|
@cached_property
|
|
840
788
|
def rerank(self) -> rerank.AsyncRerankResourceWithRawResponse:
|
|
841
789
|
from .resources.rerank import AsyncRerankResourceWithRawResponse
|
|
@@ -927,24 +875,12 @@ class TogetherWithStreamedResponse:
|
|
|
927
875
|
|
|
928
876
|
return ModelsResourceWithStreamingResponse(self._client.models)
|
|
929
877
|
|
|
930
|
-
@cached_property
|
|
931
|
-
def jobs(self) -> jobs.JobsResourceWithStreamingResponse:
|
|
932
|
-
from .resources.jobs import JobsResourceWithStreamingResponse
|
|
933
|
-
|
|
934
|
-
return JobsResourceWithStreamingResponse(self._client.jobs)
|
|
935
|
-
|
|
936
878
|
@cached_property
|
|
937
879
|
def endpoints(self) -> endpoints.EndpointsResourceWithStreamingResponse:
|
|
938
880
|
from .resources.endpoints import EndpointsResourceWithStreamingResponse
|
|
939
881
|
|
|
940
882
|
return EndpointsResourceWithStreamingResponse(self._client.endpoints)
|
|
941
883
|
|
|
942
|
-
@cached_property
|
|
943
|
-
def hardware(self) -> hardware.HardwareResourceWithStreamingResponse:
|
|
944
|
-
from .resources.hardware import HardwareResourceWithStreamingResponse
|
|
945
|
-
|
|
946
|
-
return HardwareResourceWithStreamingResponse(self._client.hardware)
|
|
947
|
-
|
|
948
884
|
@cached_property
|
|
949
885
|
def rerank(self) -> rerank.RerankResourceWithStreamingResponse:
|
|
950
886
|
from .resources.rerank import RerankResourceWithStreamingResponse
|
|
@@ -1036,24 +972,12 @@ class AsyncTogetherWithStreamedResponse:
|
|
|
1036
972
|
|
|
1037
973
|
return AsyncModelsResourceWithStreamingResponse(self._client.models)
|
|
1038
974
|
|
|
1039
|
-
@cached_property
|
|
1040
|
-
def jobs(self) -> jobs.AsyncJobsResourceWithStreamingResponse:
|
|
1041
|
-
from .resources.jobs import AsyncJobsResourceWithStreamingResponse
|
|
1042
|
-
|
|
1043
|
-
return AsyncJobsResourceWithStreamingResponse(self._client.jobs)
|
|
1044
|
-
|
|
1045
975
|
@cached_property
|
|
1046
976
|
def endpoints(self) -> endpoints.AsyncEndpointsResourceWithStreamingResponse:
|
|
1047
977
|
from .resources.endpoints import AsyncEndpointsResourceWithStreamingResponse
|
|
1048
978
|
|
|
1049
979
|
return AsyncEndpointsResourceWithStreamingResponse(self._client.endpoints)
|
|
1050
980
|
|
|
1051
|
-
@cached_property
|
|
1052
|
-
def hardware(self) -> hardware.AsyncHardwareResourceWithStreamingResponse:
|
|
1053
|
-
from .resources.hardware import AsyncHardwareResourceWithStreamingResponse
|
|
1054
|
-
|
|
1055
|
-
return AsyncHardwareResourceWithStreamingResponse(self._client.hardware)
|
|
1056
|
-
|
|
1057
981
|
@cached_property
|
|
1058
982
|
def rerank(self) -> rerank.AsyncRerankResourceWithStreamingResponse:
|
|
1059
983
|
from .resources.rerank import AsyncRerankResourceWithStreamingResponse
|
|
@@ -139,6 +139,7 @@ def model_dump(
|
|
|
139
139
|
exclude_defaults: bool = False,
|
|
140
140
|
warnings: bool = True,
|
|
141
141
|
mode: Literal["json", "python"] = "python",
|
|
142
|
+
by_alias: bool | None = None,
|
|
142
143
|
) -> dict[str, Any]:
|
|
143
144
|
if (not PYDANTIC_V1) or hasattr(model, "model_dump"):
|
|
144
145
|
return model.model_dump(
|
|
@@ -148,13 +149,12 @@ def model_dump(
|
|
|
148
149
|
exclude_defaults=exclude_defaults,
|
|
149
150
|
# warnings are not supported in Pydantic v1
|
|
150
151
|
warnings=True if PYDANTIC_V1 else warnings,
|
|
152
|
+
by_alias=by_alias,
|
|
151
153
|
)
|
|
152
154
|
return cast(
|
|
153
155
|
"dict[str, Any]",
|
|
154
156
|
model.dict( # pyright: ignore[reportDeprecated, reportUnnecessaryCast]
|
|
155
|
-
exclude=exclude,
|
|
156
|
-
exclude_unset=exclude_unset,
|
|
157
|
-
exclude_defaults=exclude_defaults,
|
|
157
|
+
exclude=exclude, exclude_unset=exclude_unset, exclude_defaults=exclude_defaults, by_alias=bool(by_alias)
|
|
158
158
|
),
|
|
159
159
|
)
|
|
160
160
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from typing import Any
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
from typing_extensions import override
|
|
5
|
+
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
from .._compat import model_dump
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def openapi_dumps(obj: Any) -> bytes:
|
|
12
|
+
"""
|
|
13
|
+
Serialize an object to UTF-8 encoded JSON bytes.
|
|
14
|
+
|
|
15
|
+
Extends the standard json.dumps with support for additional types
|
|
16
|
+
commonly used in the SDK, such as `datetime`, `pydantic.BaseModel`, etc.
|
|
17
|
+
"""
|
|
18
|
+
return json.dumps(
|
|
19
|
+
obj,
|
|
20
|
+
cls=_CustomEncoder,
|
|
21
|
+
# Uses the same defaults as httpx's JSON serialization
|
|
22
|
+
ensure_ascii=False,
|
|
23
|
+
separators=(",", ":"),
|
|
24
|
+
allow_nan=False,
|
|
25
|
+
).encode()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class _CustomEncoder(json.JSONEncoder):
|
|
29
|
+
@override
|
|
30
|
+
def default(self, o: Any) -> Any:
|
|
31
|
+
if isinstance(o, datetime):
|
|
32
|
+
return o.isoformat()
|
|
33
|
+
if isinstance(o, pydantic.BaseModel):
|
|
34
|
+
return model_dump(o, exclude_unset=True, mode="json", by_alias=True)
|
|
35
|
+
return super().default(o)
|