We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abf22e0 + 57e0d8f commit 78abcd1Copy full SHA for 78abcd1
deepgram/clients/live/v1/response.py
@@ -104,13 +104,18 @@ class Metadata:
104
default=None, metadata=config(exclude=lambda f: f is None)
105
)
106
model_uuid: Optional[str] = ""
107
+ extra: Optional[Dict[str, str]] = field(
108
+ default=None, metadata=config(exclude=lambda f: f is None)
109
+ )
110
111
def __getitem__(self, key):
112
_dict = self.to_dict()
113
if "model_info" in _dict:
114
_dict["model_info"] = [
115
ModelInfo.from_dict(model_info) for model_info in _dict["model_info"]
116
]
117
+ if "extra" in _dict:
118
+ _dict["extra"] = [str(extra) for _, extra in _dict["extra"].items()]
119
return _dict[key]
120
121
def __setitem__(self, key, val):
0 commit comments