@xuda.io/ai_module 1.1.4798 → 1.1.4799

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6717,13 +6717,16 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6717
6717
  };
6718
6718
 
6719
6719
  // let file_names = [];
6720
+ let process_stat = 'full';
6720
6721
  let system_message_items = [];
6721
6722
  for (const file of attachments) {
6722
6723
  // file_names.push(file.filename);
6723
6724
  let transcript;
6724
6725
  try {
6725
6726
  transcript = await get_transcript(file.filename);
6726
- } catch (error) {}
6727
+ } catch (error) {
6728
+ process_stat = 'partial';
6729
+ }
6727
6730
 
6728
6731
  const items = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
6729
6732
  items: [
@@ -6752,6 +6755,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6752
6755
  conversation_item_reference_id: items.last_id,
6753
6756
  file,
6754
6757
  read: { [uid]: Date.now() },
6758
+ process_stat,
6755
6759
  };
6756
6760
  await db_module.save_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_obj);
6757
6761
  system_message_items.push(out_conversation_item_obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4798",
3
+ "version": "1.1.4799",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",