@xuda.io/ai_module 1.1.3610 → 1.1.3611
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
|
@@ -5442,7 +5442,7 @@ export const convert_profile_image_to_avatar = async function (req, job_id, head
|
|
|
5442
5442
|
if (prompt) {
|
|
5443
5443
|
const ai_avatar_response = await client.images.edit({
|
|
5444
5444
|
model: 'chatgpt-image-latest', // 'gpt-image-1',
|
|
5445
|
-
image: images[0].image_blob, //
|
|
5445
|
+
image: images[0].image_blob, //base photo
|
|
5446
5446
|
prompt,
|
|
5447
5447
|
background: 'transparent',
|
|
5448
5448
|
});
|
|
@@ -5462,7 +5462,7 @@ export const convert_profile_image_to_avatar = async function (req, job_id, head
|
|
|
5462
5462
|
// });
|
|
5463
5463
|
const ai_avatar_response = await client.images.edit({
|
|
5464
5464
|
model: 'chatgpt-image-latest',
|
|
5465
|
-
image: images[0].image_blob, //
|
|
5465
|
+
image: images[0].image_blob, //base photo
|
|
5466
5466
|
prompt: `Create a transparent PNG profile image for a business account featuring building branded as ${business_name}.
|
|
5467
5467
|
Display the attached logo clearly as prominent exterior signage.
|
|
5468
5468
|
The building’s architecture and overall atmosphere should reflect the nature of the business, aligning with ${mainCategory} and ${subCategory}.
|