@xuda.io/ai_module 1.1.4713 → 1.1.4714
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6836,7 +6836,8 @@ export const is_spam_email = async function (uid, email, subject, account_profil
|
|
|
6836
6836
|
export const is_business_contact = async function (uid, email, name, subject, body, account_profile_info) {
|
|
6837
6837
|
const is_business_ret = await submit_chat_gpt_prompt({
|
|
6838
6838
|
uid,
|
|
6839
|
-
prompt: `
|
|
6839
|
+
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.`,
|
|
6840
|
+
// prompt: `Determine if the contact with email "${email}", subject "${subject}", name "${name}", or body "${body}" belongs to a business account. Return true if it is a business contact, false otherwise.`,
|
|
6840
6841
|
model: 'gpt-5-nano',
|
|
6841
6842
|
response_format: z.object({
|
|
6842
6843
|
is_business: z.boolean().describe('true if this is a business account/contact, false otherwise'),
|