@xuda.io/ai_module 1.1.4150 → 1.1.4152

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
@@ -4133,7 +4133,7 @@ export const create_conversation = async function (req, job_id, headers) {
4133
4133
 
4134
4134
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
4135
4135
 
4136
- const app_id = await account_module.get_account_default_project_id(uid);
4136
+ // const app_id = await account_module.get_account_default_project_id(uid);
4137
4137
 
4138
4138
  try {
4139
4139
  const conversation_obj = await client.conversations.create();
@@ -4399,7 +4399,7 @@ const contact_chat_conversation = async function (req, job_id, headers) {
4399
4399
  const chat_note = async function (req, job_id, headers) {
4400
4400
  const { uid } = req;
4401
4401
  let { prompt, conversation_doc, attachments = [], ai_agents } = req;
4402
-
4402
+ const { account_profile_info } = conversation_doc;
4403
4403
  const conversation_id = conversation_doc._id;
4404
4404
 
4405
4405
  // const receiver_contact_doc = await account_module.get_contact_info(uid, null, conversation_doc.reference_id);
@@ -4441,7 +4441,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4441
4441
  let { prompt, conversation_doc, attachments = [], ai_agents, output_format = 'md', stream = true, with_context = true } = req;
4442
4442
  await _utils.delay(1000);
4443
4443
  const conversation_id = conversation_doc._id;
4444
-
4444
+ const { account_profile_info } = conversation_doc;
4445
4445
  const emitToDashboard = (type, content) => {
4446
4446
  // console.log(type, content);
4447
4447
  global[`_ai_module_ch`].sendToQueue(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4150",
3
+ "version": "1.1.4152",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",