@xuda.io/ai_module 1.1.4808 → 1.1.4810

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
@@ -3007,8 +3007,8 @@ const get_drive_file_stream = async function (drive_type, app_id, uid, file_path
3007
3007
  };
3008
3008
 
3009
3009
  const transcribe = async function (uid, stream, metadata, account_profile_info) {
3010
+ const model = 'whisper-1';
3010
3011
  try {
3011
- const model = 'whisper-1';
3012
3012
  const resp = await client.audio.transcriptions.create({
3013
3013
  model, // or "gpt-4o-transcribe", "whisper-1"
3014
3014
  file: stream, //fs.createReadStream(filePath),
@@ -3021,6 +3021,7 @@ const transcribe = async function (uid, stream, metadata, account_profile_info)
3021
3021
  // console.log(resp); // or resp for JSON formats
3022
3022
  return resp;
3023
3023
  } catch (error) {
3024
+ open_ai_status[model] = { error, date: new Date() };
3024
3025
  debugger;
3025
3026
  }
3026
3027
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4808",
3
+ "version": "1.1.4810",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",