@xuda.io/ai_module 1.1.4398 → 1.1.4400
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5694,7 +5694,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
5694
5694
|
const tempDir = os.tmpdir();
|
|
5695
5695
|
const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
|
|
5696
5696
|
const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
|
|
5697
|
-
|
|
5697
|
+
debugger;
|
|
5698
5698
|
const detect_real_person_in_image = async function (base64) {
|
|
5699
5699
|
const ret = await submit_chat_gpt_prompt({
|
|
5700
5700
|
uid,
|
|
@@ -5844,7 +5844,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
5844
5844
|
const create_fictional_avatar = async function () {
|
|
5845
5845
|
// const { name, bio, country, mainCategory, subCategory } = account_obj.account_info;
|
|
5846
5846
|
|
|
5847
|
-
const prompt = `analyze the the person info : ${JSON.stringify(
|
|
5847
|
+
const prompt = `analyze the the person info : ${JSON.stringify(metadata)}
|
|
5848
5848
|
and create realistic fictional profile picture transparent background ,person in the center of the picture return only a centered head-and-shoulders portrait facing the camera. include no labels or text add top margin the person should cover the whole picture`;
|
|
5849
5849
|
|
|
5850
5850
|
imageBase64 = await create_image(uid, prompt, undefined, undefined, 1, undefined, undefined, { url: profile_picture }, account_profile_info);
|