@xuda.io/ai_module 1.1.4322 → 1.1.4324

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 +7 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6738,6 +6738,12 @@ 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}" logo 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
+ break;
6743
+ }
6744
+
6745
+ case 'business': {
6746
+ prompt = `find "${name}" icon/logo, Return only png,jpg image url single result e.g: "https://example.com/logo_image.png", nothing else`;
6741
6747
  break;
6742
6748
  }
6743
6749
 
@@ -6748,7 +6754,7 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
6748
6754
  const get_url = async function () {
6749
6755
  const ret = await submit_chat_gpt_prompt({
6750
6756
  uid,
6751
- prompt: `find "${name}" icon/logo, Return only png,jpg image url single result e.g: "https://example.com/logo_image.png", nothing else`,
6757
+ prompt,
6752
6758
  model: 'gpt-5-nano',
6753
6759
 
6754
6760
  metadata: { func: 'get_profile_image' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4322",
3
+ "version": "1.1.4324",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",