@xuda.io/ai_module 1.1.4361 → 1.1.4362
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 +18 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5908,14 +5908,30 @@ export const create_profile_avatar = async function (req, job_id, headers) {
|
|
|
5908
5908
|
enterprise: `large modern hight rise multi-story office building located in ${country}`,
|
|
5909
5909
|
};
|
|
5910
5910
|
const model = 'chatgpt-image-latest';
|
|
5911
|
+
// const ai_avatar_response = await client.images.edit({
|
|
5912
|
+
// model,
|
|
5913
|
+
// image: image_blob_ret.image_blob, //logo
|
|
5914
|
+
// prompt: `
|
|
5915
|
+
// Create a transparent PNG profile image for a business account featuring building branded as ${business_name}.
|
|
5916
|
+
// Display the attached logo clearly as prominent exterior signage.
|
|
5917
|
+
// Show ${obj?.[membership_plan]?.employees || obj.free.employees} in front of the building/premises.
|
|
5918
|
+
// show ${obj?.[account_obj.membership_plan]?.building_size || obj.free.building_size}
|
|
5919
|
+
// The building’s architecture and overall atmosphere should reflect the nature of the business,
|
|
5920
|
+
// aligning with ${mainCategory} and ${subCategory}.
|
|
5921
|
+
|
|
5922
|
+
// Use the provided bio (${bio}) to understand the company’s focus and personality, and adapt the architectural style to match the ${country} country’s local design language. Select an appropriate building type for the specific business category, and present a contemporary, creative office environment with a strong, recognizable brand identity.
|
|
5923
|
+
// The background should be fully removed, remove trees,clouds,sky or any landscape objects`,
|
|
5924
|
+
// background: 'transparent',
|
|
5925
|
+
// });
|
|
5926
|
+
|
|
5911
5927
|
const ai_avatar_response = await client.images.edit({
|
|
5912
5928
|
model,
|
|
5913
5929
|
image: image_blob_ret.image_blob, //logo
|
|
5914
5930
|
prompt: `
|
|
5915
5931
|
Create a transparent PNG profile image for a business account featuring building branded as ${business_name}.
|
|
5916
5932
|
Display the attached logo clearly as prominent exterior signage.
|
|
5917
|
-
|
|
5918
|
-
show ${obj?.[
|
|
5933
|
+
|
|
5934
|
+
show ${obj?.[business_size] || 'office building'}
|
|
5919
5935
|
The building’s architecture and overall atmosphere should reflect the nature of the business,
|
|
5920
5936
|
aligning with ${mainCategory} and ${subCategory}.
|
|
5921
5937
|
|