Skip to content

Commit

Permalink
Merge pull request #96 from SaarthShah/summarize-v2
Browse files Browse the repository at this point in the history
Fixed class types for the request
  • Loading branch information
SandraRodgers authored Jun 23, 2023
2 parents 1885ec2 + 0616d00 commit 5eff0ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deepgram/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class PrerecordedOptions(TranscriptionOptions, total=False):
utterances: bool
utt_split: float
detect_entities: bool
summarize: str
summarize: Union[bool, str]
paragraphs: bool
detect_language: bool
detect_topics: bool
Expand Down Expand Up @@ -208,6 +208,9 @@ class Utterance(TypedDict):
id: str


class SummaryV2(TypedDict):
short: str

class Metadata(TypedDict):
request_id: str
transaction_key: str
Expand All @@ -222,7 +225,7 @@ class Metadata(TypedDict):
TranscriptionResults = TypedDict('TranscriptionResults', {
'channels': List[Channel],
'utterances': Optional[List[Utterance]],
'summary': Optional[Dict[str, Any]]
'summary': Optional[SummaryV2],
})


Expand Down Expand Up @@ -367,7 +370,7 @@ class UsageOptions(TypedDict, total=False):
alternatives: bool
numerals: bool
detect_entities: bool
summarize: str
summarize: Union[bool, str]
paragraphs: bool
detect_language: bool
detect_topics: bool
Expand Down

0 comments on commit 5eff0ac

Please sign in to comment.