diff --git a/assemblyai/__version__.py b/assemblyai/__version__.py index 2d93b0c..978180b 100644 --- a/assemblyai/__version__.py +++ b/assemblyai/__version__.py @@ -1 +1 @@ -__version__ = "0.37.0" +__version__ = "0.38.0" diff --git a/assemblyai/types.py b/assemblyai/types.py index 1fb9c3c..8767201 100644 --- a/assemblyai/types.py +++ b/assemblyai/types.py @@ -1,6 +1,16 @@ from datetime import datetime from enum import Enum, EnumMeta -from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Tuple, Union +from typing import ( + TYPE_CHECKING, + Annotated, + Any, + Dict, + List, + Optional, + Sequence, + Tuple, + Union, +) from urllib.parse import parse_qs, urlparse from warnings import warn @@ -472,6 +482,9 @@ class SpeechModel(str, Enum): nano = "nano" "A lightweight, lower cost model for a wide range of languages." + slam_1 = "slam-1" + "A Speech Language Model optimized explicitly for speech-to-text tasks" + class RawTranscriptionConfig(BaseModel): language_code: Optional[Union[str, LanguageCode]] = None @@ -1807,8 +1820,15 @@ class ListTranscriptParameters(BaseModel): status: Optional[TranscriptStatus] = None "Filter by transcript status" - throttled_only: Optional[bool] = None + throttled_only: Annotated[ + Optional[bool], + Field( + default=None, + deprecated="`throttled_only` is deprecated and will be removed in a future release.", + ), + ] "Get only throttled transcripts, overrides the status filter" + model_config = ConfigDict(use_enum_values=True)