File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
deepgram/clients/agent/v1/websocket Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ async def start(
225
225
else :
226
226
raise DeepgramError ("Invalid options type" )
227
227
228
- if self ._settings .agent .listen .keyterms is not None and not self ._settings .agent .listen .model .startswith ("nova-3" ):
228
+ if self ._settings .agent .listen .keyterms is not None and self . _settings . agent . listen . model is not None and not self ._settings .agent .listen .model .startswith ("nova-3" ):
229
229
raise DeepgramError ("Keyterms are only supported for nova-3 models" )
230
230
231
231
try :
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def start(
226
226
else :
227
227
raise DeepgramError ("Invalid options type" )
228
228
229
- if self ._settings .agent .listen .keyterms is not None and not self ._settings .agent .listen .model .startswith ("nova-3" ):
229
+ if self ._settings .agent .listen .keyterms is not None and self . _settings . agent . listen . model is not None and not self ._settings .agent .listen .model .startswith ("nova-3" ):
230
230
raise DeepgramError ("Keyterms are only supported for nova-3 models" )
231
231
232
232
try :
You can’t perform that action at this time.
0 commit comments