@xuda.io/ai_module 1.1.3742 → 1.1.3744

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1720,7 +1720,7 @@ export const get_chat_conversation = async function (req) {
1720
1720
  };
1721
1721
 
1722
1722
  export const get_ai_chats = async function (req, job_id, headers) {
1723
- let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip } = req;
1723
+ let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
1724
1724
 
1725
1725
  const get_conversation_background = function (doc) {
1726
1726
  let deg = 145;
@@ -1798,6 +1798,9 @@ export const get_ai_chats = async function (req, job_id, headers) {
1798
1798
  if (reference_id) {
1799
1799
  opt.selector.reference_id = reference_id;
1800
1800
  }
1801
+ if (reference_id) {
1802
+ opt._id = reference_id;
1803
+ }
1801
1804
 
1802
1805
  if (search) {
1803
1806
  opt.selector = {
@@ -2378,9 +2381,9 @@ export const get_ai_agents = async function (req, job_id, headers) {
2378
2381
  if (_id) {
2379
2382
  let doc_ret = await get_ai_doc({ _id, uid });
2380
2383
  doc_ret.data._id = _id;
2381
- const doc = await get_ai_agent_info(uid, job_id, headers, doc_ret.data);
2382
- return doc;
2383
- // return doc_ret;
2384
+ // const doc = await get_ai_agent_info(uid, job_id, headers, doc_ret.data);
2385
+ // return doc;
2386
+ return doc_ret;
2384
2387
  }
2385
2388
 
2386
2389
  ///////////////
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3742",
3
+ "version": "1.1.3744",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",