@xuda.io/ai_module 1.1.4741 → 1.1.4742
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 +16 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6840,11 +6840,22 @@ export const is_spam_email = async function (uid, email, subject, account_profil
|
|
|
6840
6840
|
};
|
|
6841
6841
|
|
|
6842
6842
|
export const is_business_contact = async function (uid, email, name, subject, body, account_profile_info) {
|
|
6843
|
-
let prompt = `detect if the email "${email}", subject "${subject}", name "${name}", or body "${body}" is business or personal. Return true if it is a business , false otherwise
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6843
|
+
let prompt = `detect if the email "${email}", subject "${subject}", name "${name}", or body "${body}" is business or personal. Return true if it is a business , false otherwise.
|
|
6844
|
+
|
|
6845
|
+
Determine whether the following email and name represent a BUSINESS
|
|
6846
|
+
(including small/local businesses and sole proprietors, even if they use Gmail).
|
|
6847
|
+
|
|
6848
|
+
Return true if the identifier appears brand-like, service-oriented, or commercial.
|
|
6849
|
+
Return false only if it clearly represents an individual person.
|
|
6850
|
+
|
|
6851
|
+
|
|
6852
|
+
`;
|
|
6853
|
+
// debugger;
|
|
6854
|
+
// if (!subject) {
|
|
6855
|
+
// prompt = `detect if the email "${email}" and name "${name}" is business or personal. Return true if it is a business , false otherwise.
|
|
6856
|
+
|
|
6857
|
+
// `;
|
|
6858
|
+
// }
|
|
6848
6859
|
|
|
6849
6860
|
const is_business_ret = await submit_chat_gpt_prompt({
|
|
6850
6861
|
uid,
|