@xuda.io/ai_module 1.1.4812 → 1.1.4813

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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3020,11 +3020,12 @@ const transcribe = async function (uid, stream, metadata, account_profile_info)
3020
3020
  language: 'en', // hint language (ISO 639-1), e.g. "he" for Hebrew
3021
3021
  // temperature: 0 // lower = more literal
3022
3022
  });
3023
+ report_ai_status(model);
3023
3024
  account_module.record_ai_usage(uid, 0, resp.length || 0, 'transcribe', '', model, metadata, account_profile_info);
3024
3025
  // console.log(resp); // or resp for JSON formats
3025
3026
  return resp;
3026
3027
  } catch (error) {
3027
- open_ai_status[model] = { error, date: new Date() };
3028
+ report_ai_status(model, error);
3028
3029
  debugger;
3029
3030
  }
3030
3031
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4812",
3
+ "version": "1.1.4813",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",