@xuda.io/ai_module 1.1.4302 → 1.1.4304
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
|
@@ -6738,7 +6738,7 @@ const get_business_logo = async function (uid, name, account_profile_info) {
|
|
|
6738
6738
|
console.log('=============', ret);
|
|
6739
6739
|
|
|
6740
6740
|
const url = ret.data;
|
|
6741
|
-
|
|
6741
|
+
const file = await return_image_blob_from_downloaded_image(url);
|
|
6742
6742
|
// prompt: `find "${name}" logo base on the following facts "${facts}", Return only png,jpg img tag , nothing else`,
|
|
6743
6743
|
// try {
|
|
6744
6744
|
// if (ret.code > -1) {
|
|
@@ -6790,6 +6790,7 @@ const return_image_blob_from_downloaded_image = async function (url) {
|
|
|
6790
6790
|
return { is_transparent: img_ret.is_transparent, image_blob: blob };
|
|
6791
6791
|
}),
|
|
6792
6792
|
);
|
|
6793
|
+
return images[0];
|
|
6793
6794
|
} catch (err) {
|
|
6794
6795
|
console.error(err);
|
|
6795
6796
|
}
|