@xuda.io/ai_module 1.1.5446 → 1.1.5447
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.
- package/index.mjs +6 -6
- 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
|
}
|