File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1- __version__ = "0.38 .0"
1+ __version__ = "0.39 .0"
Original file line number Diff line number Diff 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
17221728class 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 (
You can’t perform that action at this time.
0 commit comments