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):
1718
1718
speech_model : Optional [SpeechModel ] = None
1719
1719
"The speech model to use for the transcription."
1720
1720
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
+
1721
1727
1722
1728
class TranscriptRequest (BaseTranscript ):
1723
1729
"""
@@ -1783,6 +1789,12 @@ class TranscriptResponse(BaseTranscript):
1783
1789
speech_model : Optional [SpeechModel ] = None
1784
1790
"The speech model used for the transcription"
1785
1791
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
+
1786
1798
def __init__ (self , ** data : Any ):
1787
1799
# cleanup the response before creating the object
1788
1800
if not data .get ("iab_categories_result" ) or (
You can’t perform that action at this time.
0 commit comments