@xuda.io/ai_module 1.1.5110 → 1.1.5112
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 +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4804,7 +4804,7 @@ setTimeout(async () => {
|
|
|
4804
4804
|
|
|
4805
4805
|
// await init_studio_units();
|
|
4806
4806
|
let ret;
|
|
4807
|
-
ret = await get_chat_suggestions(uid);
|
|
4807
|
+
ret = await get_chat_suggestions(uid, []);
|
|
4808
4808
|
// ret = await get_active_account_profile_info(uid);
|
|
4809
4809
|
// ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
|
|
4810
4810
|
// ret = await is_spam_email(uid, 'noreply@tm.openai.com', 'Please update your Plus payment method', account_profile_info);
|
|
@@ -10854,8 +10854,10 @@ export const open_ai_alive_check = async function () {};
|
|
|
10854
10854
|
// return account_profile_info;
|
|
10855
10855
|
// };
|
|
10856
10856
|
|
|
10857
|
-
export const get_chat_suggestions = async function (uid,
|
|
10857
|
+
export const get_chat_suggestions = async function (uid, ai_agents, conversation_item_id, ai_model = _conf.default_ai_model) {
|
|
10858
10858
|
let ret = [];
|
|
10859
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
10860
|
+
|
|
10859
10861
|
try {
|
|
10860
10862
|
const get_agents = async function () {
|
|
10861
10863
|
if (typeof ai_agents === 'undefined') {
|