It appears you're encountering an error when trying to use the keywords parameter with the Nova-3 model. Based on the error message, Nova-3 doesn't support the keywords parameter that was available in previous models.
The error message suggests using keyterm instead of keywords for Nova-3. This indicates that Deepgram has updated their keyword boosting functionality for the Nova-3 model with a new parameter name.
Try modifying your code to use keyterm instead of keywords:
options = PrerecordedOptions(
model=self.model,
smart_format=True,
language="en-US",
dictation=True,
punctuate=True,
sample_rate=16000,
keyterm=keywords,
diarize=True,
)
This appears to be a change specific to Nova-3, as previous discussions show that keyword boosting has had compatibility issues with different models in the past. For example, there were issues with keywords not working with the Nova model as mentioned in this discussion and another discussion noted issues with keyword boosting on the enhanced tier.
If you continue to experience issues, you might want to check Deepgram's latest documentation for any updates on keyword/keyterm functionality with Nova-3.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: