@xuda.io/ai_module 1.1.4360 → 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 -27
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5906,41 +5906,32 @@ export const create_profile_avatar = async function (req, job_id, headers) {
|
|
|
5906
5906
|
medium: `medium-sized multi-story office building located in ${country} `,
|
|
5907
5907
|
large: `large modern multi-story office building located in ${country}`,
|
|
5908
5908
|
enterprise: `large modern hight rise multi-story office building located in ${country}`,
|
|
5909
|
-
|
|
5910
|
-
team: {
|
|
5911
|
-
building_size: 'medium-sized building',
|
|
5912
|
-
employees: '',
|
|
5913
|
-
},
|
|
5914
|
-
agency: {
|
|
5915
|
-
building_size: 'medium-sized building',
|
|
5916
|
-
employees: '',
|
|
5917
|
-
},
|
|
5918
|
-
|
|
5919
|
-
enterprise_t1: {
|
|
5920
|
-
building_size: 'large modern multi-story office building',
|
|
5921
|
-
employees:
|
|
5922
|
-
'A large group of thirty diverse professional employees, all appearing to be from ${country} (with ethnic features, skin tones, and facial characteristics typical of ${country}), men and women in business attire, standing together smiling in the foreground in front of the building',
|
|
5923
|
-
},
|
|
5924
|
-
enterprise_t2: {
|
|
5925
|
-
building_size: '',
|
|
5926
|
-
employees:
|
|
5927
|
-
'A large group of thirty diverse professional employees, all appearing to be from ${country} (with ethnic features, skin tones, and facial characteristics typical of ${country}), men and women in business attire, standing together smiling in the foreground in front of the building',
|
|
5928
|
-
},
|
|
5929
|
-
enterprise_t3: {
|
|
5930
|
-
building_size: 'large modern hight tower multi-story office building',
|
|
5931
|
-
employees:
|
|
5932
|
-
'A large group of thirty diverse professional employees, all appearing to be from ${country} (with ethnic features, skin tones, and facial characteristics typical of ${country}), men and women in business attire, standing together smiling in the foreground in front of the building',
|
|
5933
|
-
},
|
|
5934
5909
|
};
|
|
5935
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
|
+
|
|
5936
5927
|
const ai_avatar_response = await client.images.edit({
|
|
5937
5928
|
model,
|
|
5938
5929
|
image: image_blob_ret.image_blob, //logo
|
|
5939
5930
|
prompt: `
|
|
5940
5931
|
Create a transparent PNG profile image for a business account featuring building branded as ${business_name}.
|
|
5941
5932
|
Display the attached logo clearly as prominent exterior signage.
|
|
5942
|
-
|
|
5943
|
-
show ${obj?.[
|
|
5933
|
+
|
|
5934
|
+
show ${obj?.[business_size] || 'office building'}
|
|
5944
5935
|
The building’s architecture and overall atmosphere should reflect the nature of the business,
|
|
5945
5936
|
aligning with ${mainCategory} and ${subCategory}.
|
|
5946
5937
|
|