@xuda.io/ai_module 1.1.4324 → 1.1.4326
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
|
@@ -6724,7 +6724,7 @@ export const is_business_contact = async function (uid, email, name, subject, bo
|
|
|
6724
6724
|
} catch (error) {}
|
|
6725
6725
|
};
|
|
6726
6726
|
|
|
6727
|
-
const get_profile_image = async function (uid, account_type = 'personal', name, facts, account_profile_info) {
|
|
6727
|
+
const get_profile_image = async function (uid, account_type = 'personal', name, facts = {}, account_profile_info) {
|
|
6728
6728
|
function normalizeFilename(name) {
|
|
6729
6729
|
return name
|
|
6730
6730
|
.toLowerCase() // lowercase
|
|
@@ -6738,7 +6738,7 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
|
|
|
6738
6738
|
|
|
6739
6739
|
switch (account_type) {
|
|
6740
6740
|
case 'personal': {
|
|
6741
|
-
prompt = `find "${name}"
|
|
6741
|
+
prompt = `find "${name}" person profile image base on the following facts: "${JSON.stringify(facts)}", Return only png,jpg image url single result e.g: "https://example.com/person_image.png", nothing else`;
|
|
6742
6742
|
break;
|
|
6743
6743
|
}
|
|
6744
6744
|
|