@xuda.io/ai_module 1.1.5535 → 1.1.5537

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
@@ -6637,7 +6637,7 @@ export const get_transcript = async function (uid, app_id, conversation_id, acco
6637
6637
 
6638
6638
  export const add_transcript_conversation_item = async function (uid, profile_id, conversation_id, conversation_type, reference_id, filename, transcript) {
6639
6639
  try {
6640
- const conversation_item_reference_id = add_conversation_item(uid, profile_id, conversation_id, `File name: ${filename} with content: ${transcript?.data || transcript || ''}`, conversation_type, reference_id, {});
6640
+ const conversation_item_reference_id = await add_conversation_item(uid, profile_id, conversation_id, `File name: ${filename} with content: ${transcript?.data || transcript || ''}`, conversation_type, reference_id, {});
6641
6641
 
6642
6642
  report_ai_status('conversations');
6643
6643
  return conversation_item_reference_id;
@@ -6687,7 +6687,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6687
6687
  reference_id: conversation_doc.reference_id,
6688
6688
  direction: 'out',
6689
6689
  role: 'user',
6690
- conversation_item_reference_id: items?.last_id,
6690
+ conversation_item_reference_id: conversation_item_reference_id, //items?.last_id,
6691
6691
  file,
6692
6692
  read: { [uid]: Date.now() },
6693
6693
  process_stat,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5535",
3
+ "version": "1.1.5537",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",