@xuda.io/ai_module 1.1.5446 → 1.1.5448

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 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4391,7 +4391,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4391
4391
  throw new Error(err.message);
4392
4392
  }
4393
4393
 
4394
- if (prompt_suggestion_activated || reference_type === 'ai_agents') {
4394
+ if (prompt_suggestion_activated || chat_suggestion_activated || reference_type === 'ai_agents') {
4395
4395
  if (ai_agent_doc?.agentConfig?.agent_ai_model) {
4396
4396
  model = ai_agent_doc.agentConfig.agent_ai_model;
4397
4397
  }
@@ -4414,7 +4414,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4414
4414
  }
4415
4415
 
4416
4416
  case 'mcp': {
4417
- if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
4417
+ if (reference_type !== 'ai_agents' && !prompt_suggestion_activated && !chat_suggestion_activated) {
4418
4418
  eligible_agent = false;
4419
4419
  break;
4420
4420
  }
@@ -4435,7 +4435,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4435
4435
  }
4436
4436
 
4437
4437
  case 'cpi': {
4438
- if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
4438
+ if (reference_type !== 'ai_agents' && !prompt_suggestion_activated && !chat_suggestion_activated) {
4439
4439
  eligible_agent = false;
4440
4440
  break;
4441
4441
  }
@@ -4537,7 +4537,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4537
4537
  }
4538
4538
 
4539
4539
  case 'image_generate': {
4540
- if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
4540
+ if (reference_type !== 'ai_agents' && !prompt_suggestion_activated && !chat_suggestion_activated) {
4541
4541
  eligible_agent = false;
4542
4542
  break;
4543
4543
  }
@@ -4638,7 +4638,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4638
4638
  }
4639
4639
 
4640
4640
  case 'ai_agent': {
4641
- if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
4641
+ if (reference_type !== 'ai_agents' && !prompt_suggestion_activated && !chat_suggestion_activated) {
4642
4642
  eligible_agent = false;
4643
4643
  break;
4644
4644
  }
@@ -4692,7 +4692,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4692
4692
  break;
4693
4693
  }
4694
4694
  case 'plugin': {
4695
- if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
4695
+ if (reference_type !== 'ai_agents' && !prompt_suggestion_activated && !chat_suggestion_activated) {
4696
4696
  eligible_agent = false;
4697
4697
  break;
4698
4698
  }
@@ -4876,7 +4876,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4876
4876
  }
4877
4877
  ///////////
4878
4878
 
4879
- if (reference_type === 'ai_agents' || prompt_suggestion_activated) {
4879
+ if (reference_type === 'ai_agents' || prompt_suggestion_activated || chat_suggestion_activated) {
4880
4880
  _agent = agents[0];
4881
4881
 
4882
4882
  set_ts_to_agent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5446",
3
+ "version": "1.1.5448",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",