@xuda.io/ai_module 1.1.4826 → 1.1.4828

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3043,8 +3043,7 @@ const transcribe = async function (uid, stream, metadata, account_profile_info)
3043
3043
  try {
3044
3044
  const resp = await client.audio.transcriptions.create({
3045
3045
  model, // or "gpt-4o-transcribe", "whisper-1"
3046
- file: stream, //fs.createReadStream(filePath),
3047
-
3046
+ file: stream,
3048
3047
  response_format: 'text', // "text" | "json" | "verbose_json" | "srt" | "vtt"
3049
3048
  language: 'en', // hint language (ISO 639-1), e.g. "he" for Hebrew
3050
3049
  // temperature: 0 // lower = more literal
@@ -3055,7 +3054,7 @@ const transcribe = async function (uid, stream, metadata, account_profile_info)
3055
3054
  return resp;
3056
3055
  } catch (err) {
3057
3056
  report_ai_status(model, err);
3058
- debugger;
3057
+ throw err;
3059
3058
  }
3060
3059
  };
3061
3060
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4826",
3
+ "version": "1.1.4828",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",