mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
fixed deepgram river does not return api_key (#486)
This commit is contained in:
@@ -667,6 +667,10 @@ function decryptCredential(obj, credential, logger, isObscureKey = true) {
|
|||||||
obj.deepgram_tts_uri = o.deepgram_tts_uri;
|
obj.deepgram_tts_uri = o.deepgram_tts_uri;
|
||||||
obj.model_id = o.model_id;
|
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) {
|
else if ('ibm' === obj.vendor) {
|
||||||
const o = JSON.parse(decrypt(credential));
|
const o = JSON.parse(decrypt(credential));
|
||||||
obj.tts_api_key = isObscureKey ? obscureKey(o.tts_api_key) : o.tts_api_key;
|
obj.tts_api_key = isObscureKey ? obscureKey(o.tts_api_key) : o.tts_api_key;
|
||||||
|
|||||||
Reference in New Issue
Block a user