Skip to content

Commit f34ac96

Browse files
fix(api): remove task field from audio transcription/translation responses
1 parent 9889ead commit f34ac96

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 75
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai/togetherai-c120da21adf22dd3902475f6ba7410dd57d9d2995a232e676d59af4806d57d09.yml
3-
openapi_spec_hash: eff04023d0ad22f11bbf107e44fe699e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai/togetherai-3056d7e8e77acd47415c236c6de4ddfd47809c810a8941374b680d8d7cbe653f.yml
3+
openapi_spec_hash: 4450b266f8537f2677a9a2ba0d9fe88c
44
config_hash: 6c214c91fad5ead4849be777fd9e8108

src/together/types/audio/transcription_create_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Union, Optional
4-
from typing_extensions import Literal, TypeAlias
4+
from typing_extensions import TypeAlias
55

66
from ..._models import BaseModel
77

@@ -93,9 +93,6 @@ class AudioTranscriptionVerboseJsonResponse(BaseModel):
9393
segments: List[AudioTranscriptionVerboseJsonResponseSegment]
9494
"""Array of transcription segments"""
9595

96-
task: Literal["transcribe", "translate"]
97-
"""The task performed"""
98-
9996
text: str
10097
"""The transcribed text"""
10198

src/together/types/audio/translation_create_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Union, Optional
4-
from typing_extensions import Literal, TypeAlias
4+
from typing_extensions import TypeAlias
55

66
from ..._models import BaseModel
77

@@ -57,9 +57,6 @@ class AudioTranslationVerboseJsonResponse(BaseModel):
5757
segments: List[AudioTranslationVerboseJsonResponseSegment]
5858
"""Array of translation segments"""
5959

60-
task: Literal["transcribe", "translate"]
61-
"""The task performed"""
62-
6360
text: str
6461
"""The translated text"""
6562

0 commit comments

Comments
 (0)