@xuda.io/ai_module 1.1.4253 → 1.1.4254

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6641,7 +6641,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
6641
6641
  return system_message_items;
6642
6642
  };
6643
6643
 
6644
- export const is_spam_email = async function (uid, email, subject) {
6644
+ export const is_spam_email = async function (uid, email, subject, account_profile_info) {
6645
6645
  const is_spam = await submit_chat_gpt_prompt({
6646
6646
  uid,
6647
6647
  prompt: `detect if the email: ${email} with a subject ${subject} is spam or promotional. return true or false`,
@@ -6650,6 +6650,7 @@ export const is_spam_email = async function (uid, email, subject) {
6650
6650
  is_spam: z.boolean().describe('if spam or promotional email return true otherwise false'),
6651
6651
  }),
6652
6652
  metadata: { func: 'is_spam_email' },
6653
+ account_profile_info,
6653
6654
  });
6654
6655
  return is_spam;
6655
6656
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4253",
3
+ "version": "1.1.4254",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",