@xuda.io/account_module 1.2.1973 → 1.2.1974

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 +17 -15
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2933,21 +2933,23 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
2933
2933
 
2934
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);
2935
2935
  if (transcript) {
2936
- try {
2937
- items = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
2938
- items: [
2939
- {
2940
- type: 'message',
2941
- role: 'system',
2942
- content: [{ type: 'input_text', text: `the user attached file name: ${conversation_item.file.filename} with content: ${transcript?.data || transcript || ''}` }],
2943
- },
2944
- ],
2945
- });
2946
- // report_ai_status('conversations');
2947
- } catch (err) {
2948
- // report_ai_status('conversations', err);
2949
- throw err;
2950
- }
2936
+ items = await ai_module.add_transcript_conversation_item(conversation_doc.reference_conversation_id, conversation_item.file.filename, transcript);
2937
+
2938
+ // try {
2939
+ // items = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
2940
+ // items: [
2941
+ // {
2942
+ // type: 'message',
2943
+ // role: 'system',
2944
+ // content: [{ type: 'input_text', text: `the user attached file name: ${conversation_item.file.filename} with content: ${transcript?.data || transcript || ''}` }],
2945
+ // },
2946
+ // ],
2947
+ // });
2948
+ // // report_ai_status('conversations');
2949
+ // } catch (err) {
2950
+ // // report_ai_status('conversations', err);
2951
+ // throw err;
2952
+ // }
2951
2953
  conversation_item.text = transcript?.data || transcript || '';
2952
2954
  conversation_item.process_stat = 'full';
2953
2955
  const conversation_item_save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1973",
3
+ "version": "1.2.1974",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {