@xuda.io/ai_module 1.1.4862 → 1.1.4863
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 +8 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6059,6 +6059,14 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6059
6059
|
};
|
|
6060
6060
|
|
|
6061
6061
|
export const is_spam_email = async function (uid, email, subject, account_profile_info) {
|
|
6062
|
+
const spam_whitelists = await db_module.find_couch_query('xuda_accounts', {
|
|
6063
|
+
selector: {
|
|
6064
|
+
docType: 'spam_whitelist',
|
|
6065
|
+
email,
|
|
6066
|
+
stat: 3,
|
|
6067
|
+
},
|
|
6068
|
+
});
|
|
6069
|
+
|
|
6062
6070
|
const is_spam_ret = await submit_chat_gpt_prompt({
|
|
6063
6071
|
uid,
|
|
6064
6072
|
prompt: `detect if the email: ${email} with a subject ${subject} is spam or promotional. return true or false`,
|