@xuda.io/ai_module 1.1.3637 → 1.1.3639
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 +40 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3081,7 +3081,6 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3081
3081
|
db_doc = await get_db_doc();
|
|
3082
3082
|
db_doc.studio_meta.thumbnail_request_ts = Date.now();
|
|
3083
3083
|
db_doc.studio_meta.agent_image = images_arr.data;
|
|
3084
|
-
// db_doc.studio_meta.agent_assistant_name = agent_assistant_name.data;
|
|
3085
3084
|
|
|
3086
3085
|
break;
|
|
3087
3086
|
}
|
|
@@ -5773,6 +5772,45 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5773
5772
|
|
|
5774
5773
|
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
5775
5774
|
const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5775
|
+
|
|
5776
|
+
if (account_doc.account_info.account_type === 'business') {
|
|
5777
|
+
const prompt = `
|
|
5778
|
+
Create a futuristic, faceless humanoid profile portrait with a transparent background.
|
|
5779
|
+
|
|
5780
|
+
Center the character facing forward, with subtle top spacing, showing only the head and shoulders.
|
|
5781
|
+
The humanoid must remain completely faceless.
|
|
5782
|
+
|
|
5783
|
+
Style the humanoid with functional, minimal attire integrated into its form
|
|
5784
|
+
(such as collars, layered panels, shoulder structures, or fabric-like surfaces),
|
|
5785
|
+
avoiding human fashion tropes.
|
|
5786
|
+
|
|
5787
|
+
Select exactly ONE accessory category per generation (do not combine):
|
|
5788
|
+
- Head-mounted element (visor, band, halo ring)
|
|
5789
|
+
- Chest or collar element (badge, glyph, embedded tag)
|
|
5790
|
+
- Floating or projected element (holographic symbol, light node)
|
|
5791
|
+
- Structural or partially visible object that reinforces the role
|
|
5792
|
+
|
|
5793
|
+
Accessories must directly reinforce the identity of
|
|
5794
|
+
"${ai_agent_doc.properties.menuName} - ${ai_agent_doc.studio_meta.agent_assistant_name}".
|
|
5795
|
+
|
|
5796
|
+
Use a consistent, fixed color palette across all generations.
|
|
5797
|
+
Do not introduce new colors.
|
|
5798
|
+
All variation must come from geometry, materials, texture, and lighting.
|
|
5799
|
+
|
|
5800
|
+
Vary at least two of the following:
|
|
5801
|
+
- Head geometry
|
|
5802
|
+
- Surface structure
|
|
5803
|
+
- Material finish
|
|
5804
|
+
- Light interaction
|
|
5805
|
+
|
|
5806
|
+
Use advanced or reflective materials to convey intelligence and sophistication.
|
|
5807
|
+
The overall composition should symbolize the fusion of human creativity and machine intelligence.
|
|
5808
|
+
|
|
5809
|
+
`;
|
|
5810
|
+
//and a hat
|
|
5811
|
+
const images_arr = await create_and_upload_image_to_drive('studio', 'Progs Thumbnails', doc._id, prompt, 1, uid, app_id, job_id, headers, false, tags);
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5776
5814
|
let url = account_doc.account_info.profile_avatar;
|
|
5777
5815
|
|
|
5778
5816
|
try {
|
|
@@ -5818,7 +5856,6 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5818
5856
|
);
|
|
5819
5857
|
|
|
5820
5858
|
let imageBase64;
|
|
5821
|
-
let avatar_source = '';
|
|
5822
5859
|
|
|
5823
5860
|
//////////////////
|
|
5824
5861
|
imageBase64 = Buffer.from(await images[0].image_blob.arrayBuffer()).toString('base64');
|
|
@@ -5830,6 +5867,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5830
5867
|
prompt: `
|
|
5831
5868
|
Create a futuristic, profile portrait with a transparent background.
|
|
5832
5869
|
make the character look like the person from the provided image with complete metal face hairless ,
|
|
5870
|
+
The humanoid must remain completely metal.
|
|
5833
5871
|
Center the character facing forward, with subtle top spacing, showing only the head and shoulders.
|
|
5834
5872
|
Style the humanoid with functional, minimal attire integrated into its form (such as collars,
|
|
5835
5873
|
layered panels, shoulder structures, or fabric-like surfaces), avoiding human fashion tropes.
|