feat assembly (#515)

* fix

* wip

* wip

* wip

* wip

* fix review comments
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-11-02 09:25:04 -04:00
1 parent 4b3234f4e4
commit 7fee2ba2dc
8 files changed
+110 -137

No files matched your search

+3
View File
@@ -91,6 +91,9 @@ const speechMapper = (cred) => {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;
obj.model_id = o.model_id;
} else if ('assemblyai' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = o.api_key;
} else if (obj.vendor.startsWith('custom:')) {
const o = JSON.parse(decrypt(credential));
obj.auth_token = o.auth_token;