@xuda.io/ai_module 1.1.4705 → 1.1.4706
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
|
@@ -6108,6 +6108,22 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
6108
6108
|
// account_module.record_ai_usage(uid, ai_avatar_response.usage.input_tokens, ai_avatar_response.usage.output_tokens, 'profile avatar', prompt, model, { profile_picture }, account_profile_info);
|
|
6109
6109
|
// imageBase64 = ai_avatar_response.data[0].b64_json;
|
|
6110
6110
|
if (is_real_person) {
|
|
6111
|
+
imageBase64 = await create_image(
|
|
6112
|
+
uid,
|
|
6113
|
+
`
|
|
6114
|
+
analyze the the person info : {"name": "${doc?.name || ''}", "accept-language": "${doc?.headers?.['accept-language'] || ''}", "context": "${
|
|
6115
|
+
doc?.context || ''
|
|
6116
|
+
}"} and create realistic fictional profile picture transparent background ,person in the center of the picture add top margin the person should cover the whole picture
|
|
6117
|
+
|
|
6118
|
+
`,
|
|
6119
|
+
undefined,
|
|
6120
|
+
undefined,
|
|
6121
|
+
1,
|
|
6122
|
+
undefined,
|
|
6123
|
+
undefined,
|
|
6124
|
+
{},
|
|
6125
|
+
account_profile_info,
|
|
6126
|
+
);
|
|
6111
6127
|
} else {
|
|
6112
6128
|
imageBase64 = await create_image(
|
|
6113
6129
|
uid,
|