@xuda.io/ai_module 1.1.5279 → 1.1.5281

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4805,7 +4805,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4805
4805
  }
4806
4806
  ///////////
4807
4807
 
4808
- if (reference_type === 'ai_agents') {
4808
+ if (reference_type === 'ai_agents' || prompt_selected_suggestion) {
4809
4809
  _agent = agents[0];
4810
4810
 
4811
4811
  set_ts_to_agent();
@@ -11025,7 +11025,7 @@ export const open_ai_alive_check = async function () {};
11025
11025
  export const get_chat_suggestions = async function (req) {
11026
11026
  //type = 'chat prompt'
11027
11027
  const { type = 'chat response', uid, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model, context } = req;
11028
- let { ai_agents = [], exclude_agents = [] } = req;
11028
+ let { ai_agents, exclude_agents = [] } = req;
11029
11029
 
11030
11030
  try {
11031
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.5279",
3
+ "version": "1.1.5281",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",