@xuda.io/ai_module 1.1.5278 → 1.1.5280

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 +1 -17
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4801,22 +4801,6 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4801
4801
  } else {
4802
4802
  emitToDashboard('response_start');
4803
4803
  }
4804
-
4805
- // await render_suggestions();
4806
- // await _utils.delay(10000);
4807
- // const job_info = await jobs_ms.get_job_info({ job_id });
4808
-
4809
- // if (job_info.code < 0 || job_info.data.stat === 4) {
4810
- // // return { code: 5, data: 'aborted' };
4811
- // throw 'aborted';
4812
- // }
4813
- // if (job_info?.data?.payload?.ai_agents) {
4814
- // prompt_suggestion_activated = true;
4815
- // ai_agents = job_info.data.payload.ai_agents;
4816
- // agents = await get_agents();
4817
- // } else {
4818
- // emitToDashboard('response_start');
4819
- // }
4820
4804
  }
4821
4805
  }
4822
4806
  ///////////
@@ -11041,7 +11025,7 @@ export const open_ai_alive_check = async function () {};
11041
11025
  export const get_chat_suggestions = async function (req) {
11042
11026
  //type = 'chat prompt'
11043
11027
  const { type = 'chat response', uid, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model, context } = req;
11044
- let { ai_agents = [], exclude_agents = [] } = req;
11028
+ let { ai_agents, exclude_agents = [] } = req;
11045
11029
 
11046
11030
  try {
11047
11031
  const account_profile_info = await get_active_account_profile_info(uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5278",
3
+ "version": "1.1.5280",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",