@xuda.io/ai_module 1.1.4323 → 1.1.4325
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6738,11 +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}"
|
|
6741
|
+
prompt = `find "${name}" person profile image 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
6742
|
break;
|
|
6743
6743
|
}
|
|
6744
6744
|
|
|
6745
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`;
|
|
6746
6747
|
break;
|
|
6747
6748
|
}
|
|
6748
6749
|
|
|
@@ -6753,7 +6754,7 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
|
|
|
6753
6754
|
const get_url = async function () {
|
|
6754
6755
|
const ret = await submit_chat_gpt_prompt({
|
|
6755
6756
|
uid,
|
|
6756
|
-
prompt
|
|
6757
|
+
prompt,
|
|
6757
6758
|
model: 'gpt-5-nano',
|
|
6758
6759
|
|
|
6759
6760
|
metadata: { func: 'get_profile_image' },
|