@xuda.io/ai_module 1.1.4721 → 1.1.4722
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6869,7 +6869,7 @@ export const is_business_contact_has_person = async function (uid, email, name,
|
|
|
6869
6869
|
|
|
6870
6870
|
model: 'gpt-5-nano',
|
|
6871
6871
|
response_format: z.object({
|
|
6872
|
-
|
|
6872
|
+
business_has_person: z.boolean().describe('true if the email has person, false otherwise'),
|
|
6873
6873
|
}),
|
|
6874
6874
|
metadata: { func: 'is_business_contact_has_person' },
|
|
6875
6875
|
account_profile_info,
|
|
@@ -6877,7 +6877,7 @@ export const is_business_contact_has_person = async function (uid, email, name,
|
|
|
6877
6877
|
try {
|
|
6878
6878
|
if (has_person_ret.code > -1) {
|
|
6879
6879
|
const data = JSON.parse(has_person_ret.data);
|
|
6880
|
-
return data.
|
|
6880
|
+
return data.business_has_person;
|
|
6881
6881
|
}
|
|
6882
6882
|
} catch (error) {}
|
|
6883
6883
|
};
|