Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: use keyterm instead of keywords for Deepgram Nova-3

Louis Beaumont4dc99802b10d
diff --git a/crates/screenpipe-audio/src/transcription/deepgram/batch.rs b/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
index 3bcc4bade..308275375 100644
--- a/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
@@ -135,12 +135,12 @@ fn create_query_params(languages: Vec<Language>, vocabulary: &[VocabularyEntry])
.concat();
}
- // Add vocabulary as Deepgram keywords (up to 100 per their API limit)
+ // Add vocabulary as Deepgram keyterms (Nova-3 uses `keyterm` instead of `keywords`)
for entry in vocabulary.iter().take(100) {
let keyword = entry.replacement.as_deref().unwrap_or(&entry.word);
// Simple percent-encode spaces for the query string
let encoded = keyword.replace(' ', "%20");
- query_params.push_str(&format!("&keywords={}:2", encoded));
+ query_params.push_str(&format!("&keyterm={}:2", encoded));
}
query_params