@xuda.io/ai_module 1.1.4294 → 1.1.4296

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 +5 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6723,10 +6723,10 @@ export const is_business_contact = async function (uid, email, name, subject, bo
6723
6723
  } catch (error) {}
6724
6724
  };
6725
6725
 
6726
- const get_business_logo = async function (uid, name, facts, account_profile_info) {
6726
+ const get_business_logo = async function (uid, name, account_profile_info) {
6727
6727
  const ret = await submit_chat_gpt_prompt({
6728
6728
  uid,
6729
- prompt: `find "${name}" logo base on the following facts "${facts}", Return only png,jpg img tag , nothing else`,
6729
+ prompt: `find "${name}" logo , Return only png,jpg img tag , nothing else`,
6730
6730
  model: 'gpt-5-nano',
6731
6731
  response_format: z.object({
6732
6732
  is_business: z.boolean().describe('true if this is a business account/contact, false otherwise'),
@@ -6735,7 +6735,9 @@ const get_business_logo = async function (uid, name, facts, account_profile_info
6735
6735
  account_profile_info,
6736
6736
  tools: [{ type: 'web_search_preview' }],
6737
6737
  });
6738
- console.log(ret)
6738
+ console.log('=============', ret);
6739
+
6740
+ // prompt: `find "${name}" logo base on the following facts "${facts}", Return only png,jpg img tag , nothing else`,
6739
6741
  // try {
6740
6742
  // if (ret.code > -1) {
6741
6743
  // const data = JSON.parse(ret.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4294",
3
+ "version": "1.1.4296",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",