@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.
- package/index.mjs +2 -1
- 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
|
|
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"
|