@xuda.io/ai_module 1.1.4806 → 1.1.4808
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -34,6 +34,8 @@ const _defaultAppConfig = {
|
|
|
34
34
|
};
|
|
35
35
|
admin.initializeApp(_defaultAppConfig);
|
|
36
36
|
|
|
37
|
+
var open_ai_status = {};
|
|
38
|
+
|
|
37
39
|
const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
|
|
38
40
|
const runtime_modules_path = path.join(process.env.XUDA_HOME, 'dist', 'runtime', 'js', 'modules');
|
|
39
41
|
|
|
@@ -3016,7 +3018,7 @@ const transcribe = async function (uid, stream, metadata, account_profile_info)
|
|
|
3016
3018
|
// temperature: 0 // lower = more literal
|
|
3017
3019
|
});
|
|
3018
3020
|
account_module.record_ai_usage(uid, 0, resp.length || 0, 'transcribe', '', model, metadata, account_profile_info);
|
|
3019
|
-
console.log(resp); // or resp for JSON formats
|
|
3021
|
+
// console.log(resp); // or resp for JSON formats
|
|
3020
3022
|
return resp;
|
|
3021
3023
|
} catch (error) {
|
|
3022
3024
|
debugger;
|