support deepgram model_id in speechCredential (#1213)

This commit is contained in:
Hoan Luu Huu
2025-05-28 19:00:56 +07:00
committed by GitHub
parent 690a7fcd55
commit 3475f39b1d
3 changed files with 3 additions and 1 deletions

View File

@@ -829,7 +829,7 @@ module.exports = (logger) => {
};
}
else if ('deepgram' === vendor) {
let model = rOpts.deepgramOptions?.model || rOpts.model;
let model = rOpts.deepgramOptions?.model || rOpts.model || sttCredentials.model_id;
const {deepgramOptions = {}} = rOpts;
const deepgramUri = deepgramOptions.deepgramSttUri || sttCredentials.deepgram_stt_uri;
const useTls = deepgramOptions.deepgramSttUseTls || sttCredentials.deepgram_stt_use_tls;