@@ -597,6 +597,13 @@ class RawTranscriptionConfig(BaseModel):
597597 """
598598 The speech model to use for the transcription.
599599 """
600+
601+ prompt : Optional [str ] = None
602+ "The prompt used to generate the transcript with the Slam-1 speech model. Can't be used together with `keyterms_prompt`."
603+
604+ keyterms_prompt : Optional [List [str ]] = None
605+ "The list of key terms used to generate the transcript with the Slam-1 speech model. Can't be used together with `prompt`."
606+
600607 model_config = ConfigDict (extra = "allow" )
601608
602609
@@ -640,6 +647,8 @@ def __init__(
640647 speech_threshold : Optional [float ] = None ,
641648 raw_transcription_config : Optional [RawTranscriptionConfig ] = None ,
642649 speech_model : Optional [SpeechModel ] = None ,
650+ prompt : Optional [str ] = None ,
651+ keyterms_prompt : Optional [List [str ]] = None ,
643652 ) -> None :
644653 """
645654 Args:
@@ -728,6 +737,8 @@ def __init__(
728737 self .language_confidence_threshold = language_confidence_threshold
729738 self .speech_threshold = speech_threshold
730739 self .speech_model = speech_model
740+ self .prompt = prompt
741+ self .keyterms_prompt = keyterms_prompt
731742
732743 @property
733744 def raw (self ) -> RawTranscriptionConfig :
@@ -756,6 +767,26 @@ def speech_model(self, speech_model: Optional[SpeechModel]) -> None:
756767 "Sets the speech model to use for the transcription."
757768 self ._raw_transcription_config .speech_model = speech_model
758769
770+ @property
771+ def prompt (self ) -> Optional [str ]:
772+ "The prompt to use for the transcription."
773+ return self ._raw_transcription_config .prompt
774+
775+ @prompt .setter
776+ def prompt (self , prompt : Optional [str ]) -> None :
777+ "Sets the prompt to use for the transcription."
778+ self ._raw_transcription_config .prompt = prompt
779+
780+ @property
781+ def keyterms_prompt (self ) -> Optional [List [str ]]:
782+ "The keyterms_prompt to use for the transcription."
783+ return self ._raw_transcription_config .keyterms_prompt
784+
785+ @keyterms_prompt .setter
786+ def keyterms_prompt (self , keyterms_prompt : Optional [List [str ]]) -> None :
787+ "Sets the prompt to use for the transcription."
788+ self ._raw_transcription_config .keyterms_prompt = keyterms_prompt
789+
759790 @property
760791 def punctuate (self ) -> Optional [bool ]:
761792 "Returns the status of the Automatic Punctuation feature."
0 commit comments