@xuda.io/ai_module 1.1.4068 → 1.1.4069
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6513,7 +6513,7 @@ export const is_spam_email = async function (uid, email, content) {
|
|
|
6513
6513
|
prompt: `detect if the email: ${email} is spam or promotional. return true or false`,
|
|
6514
6514
|
model: 'gpt-5-nano',
|
|
6515
6515
|
response_format: z.object({
|
|
6516
|
-
is_spam: z.boolean().describe('if spam email return true otherwise false'),
|
|
6516
|
+
is_spam: z.boolean().describe('if spam or promotional email return true otherwise false'),
|
|
6517
6517
|
}),
|
|
6518
6518
|
metadata: { func: 'is_spam_email' },
|
|
6519
6519
|
});
|