Skip to content

Commit 81b7a01

Browse files
authored
chore: sync sdk code with DeepLearning repo (#110)
1 parent 6293315 commit 81b7a01

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

assemblyai/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.37.0"
1+
__version__ = "0.38.0"

assemblyai/types.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
from datetime import datetime
22
from enum import Enum, EnumMeta
3-
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Tuple, Union
3+
from typing import (
4+
TYPE_CHECKING,
5+
Annotated,
6+
Any,
7+
Dict,
8+
List,
9+
Optional,
10+
Sequence,
11+
Tuple,
12+
Union,
13+
)
414
from urllib.parse import parse_qs, urlparse
515
from warnings import warn
616

@@ -472,6 +482,9 @@ class SpeechModel(str, Enum):
472482
nano = "nano"
473483
"A lightweight, lower cost model for a wide range of languages."
474484

485+
slam_1 = "slam-1"
486+
"A Speech Language Model optimized explicitly for speech-to-text tasks"
487+
475488

476489
class RawTranscriptionConfig(BaseModel):
477490
language_code: Optional[Union[str, LanguageCode]] = None
@@ -1807,8 +1820,15 @@ class ListTranscriptParameters(BaseModel):
18071820
status: Optional[TranscriptStatus] = None
18081821
"Filter by transcript status"
18091822

1810-
throttled_only: Optional[bool] = None
1823+
throttled_only: Annotated[
1824+
Optional[bool],
1825+
Field(
1826+
default=None,
1827+
deprecated="`throttled_only` is deprecated and will be removed in a future release.",
1828+
),
1829+
]
18111830
"Get only throttled transcripts, overrides the status filter"
1831+
18121832
model_config = ConfigDict(use_enum_values=True)
18131833

18141834

0 commit comments

Comments
 (0)