@xuda.io/ai_module 1.1.3958 → 1.1.3960

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2893,7 +2893,7 @@ const upload_agent_files = async function (uid, agent_doc) {
2893
2893
  case 'video': {
2894
2894
  await save_agent_status(uid, agent_doc._id, 2, agentConfig);
2895
2895
  const file_stream = await get_drive_file_stream('user', app_id, uid, tool.file.name);
2896
- const transcript = await transcribe(file_stream);
2896
+ const transcript = await transcribe(uid, file_stream, { func: 'upload_agent_files -' + validation_ret.category });
2897
2897
 
2898
2898
  file = new File([Buffer.from(transcript, 'utf8')], tool.file.name, {
2899
2899
  type: 'text/plain',
@@ -5006,7 +5006,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
5006
5006
  switch (validation_ret.category) {
5007
5007
  case 'audio':
5008
5008
  case 'video': {
5009
- transcript = await transcribe(fileStream);
5009
+ transcript = await transcribe(uid, fileStream, { conversation_id, func: validation_ret.category });
5010
5010
 
5011
5011
  break;
5012
5012
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3958",
3
+ "version": "1.1.3960",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",