Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.15.0"
".": "2.15.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 81
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai/togetherai-ce108a2095d36552bb556506de04475674f512a13bc5aa099e9750993405be14.yml
openapi_spec_hash: 4763dd426dd805306bbb38a314158cd3
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai/togetherai-5c5db5b7b7a6dc77f50fc6ed673a1a035cc65c8fc437d993429570c153ce77be.yml
openapi_spec_hash: 2039f33594e0bb62e558e3c1094c1f76
config_hash: b35d5968fb07cce1c1be735f874898b1
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.15.1 (2026-05-21)

Full Changelog: [v2.15.0...v2.15.1](https://github.com/togethercomputer/together-py/compare/v2.15.0...v2.15.1)

### Documentation

* **api:** add size and duration limits to file parameter in audio transcriptions/translations ([cce54f2](https://github.com/togethercomputer/together-py/commit/cce54f2362fd8dba1205eccf89f6909be74e2c37))

## 2.15.0 (2026-05-20)

Full Changelog: [v2.14.0...v2.15.0](https://github.com/togethercomputer/together-py/compare/v2.14.0...v2.15.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "together"
version = "2.15.0"
version = "2.15.1"
description = "The official Python library for the together API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/together/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "together"
__version__ = "2.15.0" # x-release-please-version
__version__ = "2.15.1" # x-release-please-version
12 changes: 8 additions & 4 deletions src/together/resources/audio/transcriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ def create(
Transcribes audio into text

Args:
file: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac.
file: Audio file upload or public HTTP/HTTPS URL. Supported formats: .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac. Maximum duration 4 hours; longer audio is
rejected with `audio_too_long`. Binary uploads are additionally capped at 500 MB
(HTTP 413); URL-fetched audio is capped at 1 GB.

diarize: Whether to enable speaker diarization. When enabled, you will get the speaker id
for each word in the transcription. In the response, in the words array, you
Expand Down Expand Up @@ -195,8 +197,10 @@ async def create(
Transcribes audio into text

Args:
file: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac.
file: Audio file upload or public HTTP/HTTPS URL. Supported formats: .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac. Maximum duration 4 hours; longer audio is
rejected with `audio_too_long`. Binary uploads are additionally capped at 500 MB
(HTTP 413); URL-fetched audio is capped at 1 GB.

diarize: Whether to enable speaker diarization. When enabled, you will get the speaker id
for each word in the transcription. In the response, in the words array, you
Expand Down
12 changes: 8 additions & 4 deletions src/together/resources/audio/translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ def create(
Translates audio into English

Args:
file: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac.
file: Audio file upload or public HTTP/HTTPS URL. Supported formats: .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac. Maximum duration 4 hours; longer audio is
rejected with `audio_too_long`. Binary uploads are additionally capped at 500 MB
(HTTP 413); URL-fetched audio is capped at 1 GB.

language: Target output language. Optional ISO 639-1 language code. If omitted, language
is set to English.
Expand Down Expand Up @@ -169,8 +171,10 @@ async def create(
Translates audio into English

Args:
file: Audio file upload or public HTTP/HTTPS URL. Supported formats .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac.
file: Audio file upload or public HTTP/HTTPS URL. Supported formats: .wav, .mp3, .m4a,
.webm, .flac, .ogg, .opus, .aac. Maximum duration 4 hours; longer audio is
rejected with `audio_too_long`. Binary uploads are additionally capped at 500 MB
(HTTP 413); URL-fetched audio is capped at 1 GB.

language: Target output language. Optional ISO 639-1 language code. If omitted, language
is set to English.
Expand Down
5 changes: 4 additions & 1 deletion src/together/types/audio/transcription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class TranscriptionCreateParams(TypedDict, total=False):
file: Required[Union[FileTypes, str]]
"""Audio file upload or public HTTP/HTTPS URL.

Supported formats .wav, .mp3, .m4a, .webm, .flac, .ogg, .opus, .aac.
Supported formats: .wav, .mp3, .m4a, .webm, .flac, .ogg, .opus, .aac. Maximum
duration 4 hours; longer audio is rejected with `audio_too_long`. Binary uploads
are additionally capped at 500 MB (HTTP 413); URL-fetched audio is capped at 1
GB.
"""

diarize: bool
Expand Down
5 changes: 4 additions & 1 deletion src/together/types/audio/translation_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class TranslationCreateParams(TypedDict, total=False):
file: Required[Union[FileTypes, str]]
"""Audio file upload or public HTTP/HTTPS URL.

Supported formats .wav, .mp3, .m4a, .webm, .flac, .ogg, .opus, .aac.
Supported formats: .wav, .mp3, .m4a, .webm, .flac, .ogg, .opus, .aac. Maximum
duration 4 hours; longer audio is rejected with `audio_too_long`. Binary uploads
are additionally capped at 500 MB (HTTP 413); URL-fetched audio is capped at 1
GB.
"""

language: str
Expand Down
Loading