@xuda.io/ai_module 1.1.5101 → 1.1.5102
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 +0 -10
- package/index_ms.mjs +4 -0
- package/index_msa.mjs +4 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10871,8 +10871,6 @@ export const get_chat_suggestions = async function (uid, conversation_item_id, a
|
|
|
10871
10871
|
|
|
10872
10872
|
const list = [];
|
|
10873
10873
|
|
|
10874
|
-
let modelSettings = {};
|
|
10875
|
-
|
|
10876
10874
|
for (const agent_id of ai_agents) {
|
|
10877
10875
|
try {
|
|
10878
10876
|
let ai_agent_doc;
|
|
@@ -10892,14 +10890,6 @@ export const get_chat_suggestions = async function (uid, conversation_item_id, a
|
|
|
10892
10890
|
} catch (err) {
|
|
10893
10891
|
throw new Error(err.message);
|
|
10894
10892
|
}
|
|
10895
|
-
|
|
10896
|
-
if (ai_agent_doc.agent_ai_model) {
|
|
10897
|
-
model = ai_agent_doc.agent_ai_model;
|
|
10898
|
-
}
|
|
10899
|
-
|
|
10900
|
-
if (ai_agent_doc.use_tools_only) {
|
|
10901
|
-
modelSettings.toolChoice = 'required';
|
|
10902
|
-
}
|
|
10903
10893
|
} catch (err) {
|
|
10904
10894
|
console.error(err.message);
|
|
10905
10895
|
}
|
package/index_ms.mjs
CHANGED
|
@@ -200,3 +200,7 @@ export const get_person_info = async function (...args) {
|
|
|
200
200
|
export const open_ai_alive_check = async function (...args) {
|
|
201
201
|
return await broker.send_to_queue("open_ai_alive_check", ...args);
|
|
202
202
|
};
|
|
203
|
+
|
|
204
|
+
export const get_chat_suggestions = async function (...args) {
|
|
205
|
+
return await broker.send_to_queue("get_chat_suggestions", ...args);
|
|
206
|
+
};
|
package/index_msa.mjs
CHANGED
|
@@ -200,3 +200,7 @@ export const get_person_info = function (...args) {
|
|
|
200
200
|
export const open_ai_alive_check = function (...args) {
|
|
201
201
|
broker.send_to_queue_async("open_ai_alive_check", ...args);
|
|
202
202
|
};
|
|
203
|
+
|
|
204
|
+
export const get_chat_suggestions = function (...args) {
|
|
205
|
+
broker.send_to_queue_async("get_chat_suggestions", ...args);
|
|
206
|
+
};
|