@xuda.io/ai_module 1.1.4311 → 1.1.4313

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5289,7 +5289,7 @@ setTimeout(async () => {
5289
5289
  // Location: 'https://xuda-bucket-dev.nyc3.digitaloceanspaces.com/dev.xuda.io/user/d39126e0e2c51ffbd1aad10709fc8335/cb7353fc-4788-49b7-8e73-f7f1be108b69_drv_d39126e0e2c51ffbd1aad10709fc8335_b92337f79e090a2f287bc3dc35d0033e.png',
5290
5290
  // },
5291
5291
  // });
5292
- // ret = await get_business_logo(uid, 'bank of america', account_profile_info);
5292
+ ret = await get_business_logo(uid, 'bank of america', account_profile_info);
5293
5293
 
5294
5294
  console.log(ret);
5295
5295
  }, 1000);
@@ -6765,7 +6765,7 @@ const get_business_logo = async function (uid, name, account_profile_info) {
6765
6765
  background: 'transparent',
6766
6766
  });
6767
6767
  record_chat_usage(uid, logo_response.usage.input_tokens, logo_response.usage.output_tokens, 'business logo', prompt, model, { url }, account_profile_info);
6768
- imageBase64 = await normalizeBase64To1024(ai_avatar_response.data[0].b64_json);
6768
+ imageBase64 = await normalizeBase64To1024(logo_response.data[0].b64_json);
6769
6769
 
6770
6770
  const outputBuffer = Buffer.from(imageBase64, 'base64');
6771
6771
  const outputPath = file.tempOutputPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4311",
3
+ "version": "1.1.4313",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",