Skip to content

Commit d4f6ac2

Browse files
authored
chore: sync sdk code with DeepLearning repo (#114)
1 parent 4a475fb commit d4f6ac2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

assemblyai/__version__.py

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

assemblyai/types.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,12 @@ class BaseTranscript(BaseModel):
17181718
speech_model: Optional[SpeechModel] = None
17191719
"The speech model to use for the transcription."
17201720

1721+
prompt: Optional[str] = None
1722+
"The prompt used to generate the transcript with the Slam-1 speech model. Can't be used together with `keyterms_prompt`."
1723+
1724+
keyterms_prompt: Optional[List[str]] = None
1725+
"The list of key terms used to generate the transcript with the Slam-1 speech model. Can't be used together with `prompt`."
1726+
17211727

17221728
class TranscriptRequest(BaseTranscript):
17231729
"""
@@ -1783,6 +1789,12 @@ class TranscriptResponse(BaseTranscript):
17831789
speech_model: Optional[SpeechModel] = None
17841790
"The speech model used for the transcription"
17851791

1792+
prompt: Optional[str] = None
1793+
"When Slam-1 is enabled, the prompt used to generate the transcript"
1794+
1795+
keyterms_prompt: Optional[List[str]] = None
1796+
"When Slam-1 is enabled, the list of key terms used to generate the transcript"
1797+
17861798
def __init__(self, **data: Any):
17871799
# cleanup the response before creating the object
17881800
if not data.get("iab_categories_result") or (

0 commit comments

Comments
 (0)