fixed deepgram river does not return api_key (#486)

This commit is contained in:
Hoan Luu Huu
2025-07-30 19:29:57 +07:00
committed by GitHub
parent 3a6d10e725
commit 2b66a121a0

View File

@@ -667,6 +667,10 @@ function decryptCredential(obj, credential, logger, isObscureKey = true) {
obj.deepgram_tts_uri = o.deepgram_tts_uri;
obj.model_id = o.model_id;
}
else if ('deepgramriver' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = isObscureKey ? obscureKey(o.api_key) : o.api_key;
}
else if ('ibm' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.tts_api_key = isObscureKey ? obscureKey(o.tts_api_key) : o.tts_api_key;