@xuda.io/ai_module 1.1.4782 → 1.1.4784
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
|
@@ -6151,6 +6151,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
6151
6151
|
imageBase64 = ai_avatar_response.data[0].b64_json;
|
|
6152
6152
|
}
|
|
6153
6153
|
} else {
|
|
6154
|
+
// contact
|
|
6154
6155
|
if (business_has_person) {
|
|
6155
6156
|
imageBase64 = await create_image(
|
|
6156
6157
|
uid,
|
|
@@ -7041,7 +7042,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7041
7042
|
try {
|
|
7042
7043
|
image_blob_ret = await get_image_blob_from_downloaded_image(url);
|
|
7043
7044
|
profile_picture_source = 'google';
|
|
7044
|
-
drive_ret = {};
|
|
7045
|
+
drive_ret = { file_url: url };
|
|
7045
7046
|
} catch (err) {
|
|
7046
7047
|
if (!err.message.includes('Failed to fetch image URL')) {
|
|
7047
7048
|
console.error(err);
|