@xuda.io/ai_module 1.1.5508 → 1.1.5510

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5112,7 +5112,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
5112
5112
  }
5113
5113
  };
5114
5114
 
5115
- const add_conversation_item = async function (uid, profile_id, conversation_id, text, conversation_type, contact_id, metadata = {}) {
5115
+ const add_conversation_item = async function (uid, profile_id, conversation_id, body, conversation_type, contact_id, metadata = {}) {
5116
5116
  const account_profile_info = await get_active_account_profile_info(uid, profile_id);
5117
5117
 
5118
5118
  try {
@@ -5123,7 +5123,7 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5123
5123
  let contact_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
5124
5124
  const conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
5125
5125
 
5126
- let text = `${new Date()} User: ${uid} ${account_info.full_name} Type: ${conversation_type}`;
5126
+ let text = `${new Date()} User Uid: ${uid} User Name: ${account_info.full_name} Type: ${conversation_type}`;
5127
5127
 
5128
5128
  try {
5129
5129
  const item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
@@ -5131,7 +5131,7 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5131
5131
  {
5132
5132
  type: 'message',
5133
5133
  role: 'user',
5134
- content: [{ type: 'input_text', text: body }],
5134
+ content: [{ type: 'input_text', text: }],
5135
5135
  },
5136
5136
  ],
5137
5137
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5508",
3
+ "version": "1.1.5510",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",