@xuda.io/ai_module 1.1.5248 → 1.1.5250
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -11033,7 +11033,7 @@ export const open_ai_alive_check = async function () {};
|
|
|
11033
11033
|
|
|
11034
11034
|
export const get_chat_suggestions = async function (req) {
|
|
11035
11035
|
const { uid, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model, context, exclude_agents = [] } = req;
|
|
11036
|
-
let { ai_agents } = req;
|
|
11036
|
+
let { ai_agents = [] } = req;
|
|
11037
11037
|
|
|
11038
11038
|
try {
|
|
11039
11039
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
@@ -11111,6 +11111,7 @@ export const get_chat_suggestions = async function (req) {
|
|
|
11111
11111
|
agents: z.array(AgentItemSchema).max(no_of_suggestions),
|
|
11112
11112
|
});
|
|
11113
11113
|
//${conversation_item_doc.text}
|
|
11114
|
+
// Prompt Category: ${conversation_doc?.category_info?.category}
|
|
11114
11115
|
const chat_ret = await submit_chat_gpt_prompt({
|
|
11115
11116
|
uid,
|
|
11116
11117
|
prompt: `
|
|
@@ -11131,7 +11132,7 @@ export const get_chat_suggestions = async function (req) {
|
|
|
11131
11132
|
|
|
11132
11133
|
User Profile: ${JSON.stringify(account_doc.account_info)}
|
|
11133
11134
|
|
|
11134
|
-
|
|
11135
|
+
|
|
11135
11136
|
|
|
11136
11137
|
Current State:
|
|
11137
11138
|
|