@xuda.io/ai_module 1.1.5071 → 1.1.5073

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 +7 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3813,7 +3813,7 @@ const contact_chat_conversation = async function (req, job_id, headers) {
3813
3813
 
3814
3814
  update_conversation_mood_level(uid, conversation_id, prompt, uid, receiver_contact_doc.contact_uid, conversation_doc.reference_type === 'contacts', account_profile_info);
3815
3815
 
3816
- return { code: 15, data: save_ret//item };
3816
+ return { code: 15, data: save_ret }; ////item
3817
3817
  };
3818
3818
 
3819
3819
  const chat_note = async function (req, job_id, headers) {
@@ -4696,7 +4696,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4696
4696
  role: 'assistant',
4697
4697
  ai_agent_id: output.state._currentAgent.name,
4698
4698
  };
4699
- await db_module.save_app_couch_doc_native(account_profile_info.app_id, in_conversation_item_obj);
4699
+ const save_ret = await db_module.save_app_couch_doc_native(account_profile_info.app_id, in_conversation_item_obj);
4700
4700
 
4701
4701
  debugger;
4702
4702
 
@@ -4757,10 +4757,11 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4757
4757
  await done(output);
4758
4758
  return {
4759
4759
  code: 4,
4760
- data: {
4761
- conversation_doc,
4762
- response: output.output, // output.finalOutput ?? output.output ?? output, // depends on SDK shape
4763
- },
4760
+ data: save_ret,
4761
+ // data: {
4762
+ // conversation_doc,
4763
+ // response: output.output, // output.finalOutput ?? output.output ?? output, // depends on SDK shape
4764
+ // },
4764
4765
  };
4765
4766
  // }
4766
4767
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5071",
3
+ "version": "1.1.5073",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",