Skip to content

Commit 1885ec2

Browse files
committed
changed summarize to be string instead of boolean to support new v2
1 parent b4849f6 commit 1885ec2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

deepgram/_types.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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: str
9393
paragraphs: bool
9494
detect_language: bool
9595
detect_topics: bool
@@ -216,11 +216,13 @@ class Metadata(TypedDict):
216216
duration: float
217217
channels: int
218218
models: List[str]
219+
model_info: Dict[str, Any]
219220

220221

221222
TranscriptionResults = TypedDict('TranscriptionResults', {
222223
'channels': List[Channel],
223-
'utterances': Optional[List[Utterance]]
224+
'utterances': Optional[List[Utterance]],
225+
'summary': Optional[Dict[str, Any]]
224226
})
225227

226228

@@ -365,7 +367,7 @@ class UsageOptions(TypedDict, total=False):
365367
alternatives: bool
366368
numerals: bool
367369
detect_entities: bool
368-
summarize: bool
370+
summarize: str
369371
paragraphs: bool
370372
detect_language: bool
371373
detect_topics: bool

0 commit comments

Comments
 (0)