File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class PrerecordedOptions(TranscriptionOptions, total=False):
8989 utterances : bool
9090 utt_split : float
9191 detect_entities : bool
92- summarize : bool
92+ summarize : Union [ bool , str ]
9393 paragraphs : bool
9494 detect_language : bool
9595 detect_topics : bool
@@ -208,6 +208,9 @@ class Utterance(TypedDict):
208208 id : str
209209
210210
211+ class SummaryV2 (TypedDict ):
212+ short : str
213+
211214class Metadata (TypedDict ):
212215 request_id : str
213216 transaction_key : str
@@ -216,11 +219,13 @@ class Metadata(TypedDict):
216219 duration : float
217220 channels : int
218221 models : List [str ]
222+ model_info : Dict [str , Any ]
219223
220224
221225TranscriptionResults = TypedDict ('TranscriptionResults' , {
222226 'channels' : List [Channel ],
223- 'utterances' : Optional [List [Utterance ]]
227+ 'utterances' : Optional [List [Utterance ]],
228+ 'summary' : Optional [SummaryV2 ],
224229})
225230
226231
@@ -365,7 +370,7 @@ class UsageOptions(TypedDict, total=False):
365370 alternatives : bool
366371 numerals : bool
367372 detect_entities : bool
368- summarize : bool
373+ summarize : Union [ bool , str ]
369374 paragraphs : bool
370375 detect_language : bool
371376 detect_topics : bool
You can’t perform that action at this time.
0 commit comments