@xuda.io/ai_module 1.1.4808 → 1.1.4809
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
|
@@ -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 };
|
|
3024
3025
|
debugger;
|
|
3025
3026
|
}
|
|
3026
3027
|
};
|