add use_streaming flag for elevenlabs and whisper (#290)

* add use_streaming flag for elevenlabs (not for whisper yet)
---------

Co-authored-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
Hoan Luu Huu
2024-02-12 21:18:49 +07:00
committed by GitHub
parent 68d73345ef
commit 256ca440a0
2 changed files with 8 additions and 4 deletions
+1
View File
@@ -428,6 +428,7 @@ function decryptCredential(obj, credential, logger, isObscureKey = true) {
obj.api_key = isObscureKey ? obscureKey(o.api_key) : o.api_key;
obj.model_id = o.model_id;
obj.options = o.options;
obj.use_streaming = o.use_streaming;
} else if (obj.vendor.startsWith('custom:')) {
const o = JSON.parse(decrypt(credential));
obj.auth_token = isObscureKey ? obscureKey(o.auth_token) : o.auth_token;