@xuda.io/ai_module 1.1.3956 → 1.1.3957

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
@@ -3452,8 +3452,9 @@ const get_drive_file_stream = async function (drive_type, app_id, uid, file_path
3452
3452
 
3453
3453
  const transcribe = async function (uid, stream, metadata) {
3454
3454
  try {
3455
+ const model = 'whisper-1';
3455
3456
  const resp = await client.audio.transcriptions.create({
3456
- model: 'whisper-1', // or "gpt-4o-transcribe", "whisper-1"
3457
+ model, // or "gpt-4o-transcribe", "whisper-1"
3457
3458
  file: stream, //fs.createReadStream(filePath),
3458
3459
 
3459
3460
  response_format: 'text', // "text" | "json" | "verbose_json" | "srt" | "vtt"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3956",
3
+ "version": "1.1.3957",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",