Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/deepgram-redact-param.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/agents-plugin-deepgram': patch
---

Avoid serializing an unset Deepgram STT redact query parameter.
2 changes: 1 addition & 1 deletion plugins/deepgram/src/stt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ export class SpeechStream extends stt.SpeechStream {
keywords: this.#opts.keywords.map((x) => x.join(':')),
keyterm: this.#opts.keyterm,
profanity_filter: this.#opts.profanityFilter,
redact: this.#opts.redact,
language: this.#opts.language,
mip_opt_out: this.#opts.mipOptOut,
...(this.#opts.redact.length > 0 ? { redact: this.#opts.redact } : {}),
};
Object.entries(params).forEach(([k, v]) => {
if (v !== undefined) {
Expand Down
Loading