@xuda.io/ai_module 1.1.4712 → 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 +11 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5533,7 +5533,15 @@ setTimeout(async () => {
|
|
|
5533
5533
|
// await init_studio_units();
|
|
5534
5534
|
let ret;
|
|
5535
5535
|
// ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
|
|
5536
|
-
ret = await is_spam_email(uid, 'noreply@tm.openai.com', 'Please update your Plus payment method', account_profile_info);
|
|
5536
|
+
// ret = await is_spam_email(uid, 'noreply@tm.openai.com', 'Please update your Plus payment method', account_profile_info);
|
|
5537
|
+
ret = await is_business_contact(
|
|
5538
|
+
uid,
|
|
5539
|
+
'noreply@tm.openai.com',
|
|
5540
|
+
'OpenAI',
|
|
5541
|
+
'Please update your Plus payment method',
|
|
5542
|
+
'Summary: Your ChatGPT Plus payment failed, but your access remains active for now. Please update your payment method to continue enjoying Plus benefits, including extended limits on messaging, file uploads, and voice mode; more image and video generation; and extended access to deep research and reasoning models. If you have questions, contact support@openai.com. Best regards, The ChatGPT Team.',
|
|
5543
|
+
account_profile_info,
|
|
5544
|
+
);
|
|
5537
5545
|
// ret = await delete_depended_chats(uid);
|
|
5538
5546
|
// ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'table_builder', { name: 'test2', prompt: 'build items table', save: true });
|
|
5539
5547
|
// ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'folder_builder', { name: 'test', prompt: 'build boaz folder', save: true, parentId: 'programs' });
|
|
@@ -6828,7 +6836,8 @@ export const is_spam_email = async function (uid, email, subject, account_profil
|
|
|
6828
6836
|
export const is_business_contact = async function (uid, email, name, subject, body, account_profile_info) {
|
|
6829
6837
|
const is_business_ret = await submit_chat_gpt_prompt({
|
|
6830
6838
|
uid,
|
|
6831
|
-
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.`,
|
|
6832
6841
|
model: 'gpt-5-nano',
|
|
6833
6842
|
response_format: z.object({
|
|
6834
6843
|
is_business: z.boolean().describe('true if this is a business account/contact, false otherwise'),
|