Skip to content

Commit

Permalink
fix voice-deepgram security bug (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
YujohnNattrass authored Feb 25, 2025
1 parent 82197f8 commit 1a10ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-jokes-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mastra/voice-deepgram': patch
---

fix deepgram security issue
3 changes: 1 addition & 2 deletions voice/deepgram/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ export class DeepgramVoice extends MastraVoice {

const speechApiKey = speechModel?.apiKey || defaultApiKey;
const listeningApiKey = listeningModel?.apiKey || defaultApiKey;
console.log('speechApiKey', speechApiKey);
console.log('listeningApiKey', listeningApiKey);

if (!speechApiKey && !listeningApiKey) {
throw new Error('At least one of DEEPGRAM_API_KEY, speechModel.apiKey, or listeningModel.apiKey must be set');
}
Expand Down

0 comments on commit 1a10ac1

Please sign in to comment.