@xuda.io/ai_module 1.1.4760 → 1.1.4761
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 +7 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6512,11 +6512,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6512
6512
|
imageBase64 = Buffer.from(await image_blob_ret.image_blob.arrayBuffer()).toString('base64');
|
|
6513
6513
|
// const model = 'chatgpt-image-latest';
|
|
6514
6514
|
const model = 'gpt-image-1-mini';
|
|
6515
|
-
const
|
|
6516
|
-
model,
|
|
6517
|
-
image: image_blob_ret.image_blob,
|
|
6518
|
-
|
|
6519
|
-
prompt: `
|
|
6515
|
+
const prompt=`
|
|
6520
6516
|
Create a futuristic, profile portrait with a transparent background.
|
|
6521
6517
|
make the character look like the person from the provided image with complete metal face hairless ,
|
|
6522
6518
|
The humanoid must remain completely metal.
|
|
@@ -6537,7 +6533,12 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6537
6533
|
- Material finish
|
|
6538
6534
|
- Light interaction Use advanced or reflective materials to convey intelligence and sophistication.
|
|
6539
6535
|
The overall composition should symbolize the fusion of human creativity and machine intelligence.
|
|
6540
|
-
|
|
6536
|
+
`
|
|
6537
|
+
const ai_avatar_response = await client.images.edit({
|
|
6538
|
+
model,
|
|
6539
|
+
image: image_blob_ret.image_blob,
|
|
6540
|
+
|
|
6541
|
+
prompt,
|
|
6541
6542
|
background: 'transparent',
|
|
6542
6543
|
});
|
|
6543
6544
|
imageBase64 = ai_avatar_response.data[0].b64_json;
|