@xuda.io/ai_module 1.1.4321 → 1.1.4323
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 +16 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6734,6 +6734,22 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
|
|
|
6734
6734
|
.replace(/^_+|_+$/g, ''); // trim leading/trailing underscores
|
|
6735
6735
|
}
|
|
6736
6736
|
|
|
6737
|
+
let prompt;
|
|
6738
|
+
|
|
6739
|
+
switch (account_type) {
|
|
6740
|
+
case 'personal': {
|
|
6741
|
+
prompt = `find "${name}" icon/logo, Return only png,jpg image url single result e.g: "https://example.com/logo_image.png", nothing else`;
|
|
6742
|
+
break;
|
|
6743
|
+
}
|
|
6744
|
+
|
|
6745
|
+
case 'business': {
|
|
6746
|
+
break;
|
|
6747
|
+
}
|
|
6748
|
+
|
|
6749
|
+
default:
|
|
6750
|
+
break;
|
|
6751
|
+
}
|
|
6752
|
+
|
|
6737
6753
|
const get_url = async function () {
|
|
6738
6754
|
const ret = await submit_chat_gpt_prompt({
|
|
6739
6755
|
uid,
|