@xuda.io/account_module 1.2.1968 → 1.2.1970

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 +6 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2929,6 +2929,8 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
2929
2929
  for await (let conversation_item of conversation_items.docs) {
2930
2930
  try {
2931
2931
  const account_profile_info = await get_active_account_profile_info(conversation_item.uid);
2932
+ let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_item.conversation_id);
2933
+
2932
2934
  const transcript = ai_module.get_transcript(conversation_item.uid, conversation_item.app_id, conversation_item.conversation_id, account_profile_info, conversation_item.file.filename);
2933
2935
  if (transcript) {
2934
2936
  try {
@@ -2937,7 +2939,7 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
2937
2939
  {
2938
2940
  type: 'message',
2939
2941
  role: 'system',
2940
- content: [{ type: 'input_text', text: `the user attached file name: ${file.filename} with content: ${transcript?.data || transcript || ''}` }],
2942
+ content: [{ type: 'input_text', text: `the user attached file name: ${conversation_item.file.filename} with content: ${transcript?.data || transcript || ''}` }],
2941
2943
  },
2942
2944
  ],
2943
2945
  });
@@ -2946,6 +2948,9 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
2946
2948
  report_ai_status('conversations', err);
2947
2949
  throw err;
2948
2950
  }
2951
+ conversation_item.text = transcript?.data || transcript || '';
2952
+ conversation_item.process_stat = 'full';
2953
+ const conversation_item_save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_item);
2949
2954
  }
2950
2955
 
2951
2956
  debugger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1968",
3
+ "version": "1.2.1970",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {