@xuda.io/ai_module 1.1.4753 → 1.1.4755

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.
Files changed (2) hide show
  1. package/index.mjs +5 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6154,7 +6154,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6154
6154
  person in the center of the picture return only a centered head-and-shoulders portrait facing the camera.
6155
6155
  include no labels or text add top margin the person should cover the whole picture
6156
6156
  `,
6157
- model,
6157
+ null,
6158
6158
  undefined,
6159
6159
  1,
6160
6160
  undefined,
@@ -6189,7 +6189,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
6189
6189
  const create_avatar_from_pic = async function () {
6190
6190
  const { bio, country, mainCategory, subCategory } = metadata;
6191
6191
  // const { first_name, last_name, bio, country, mainCategory, subCategory } = account_obj.account_info;
6192
- const model = 'chatgpt-image-latest';
6192
+ const model = 'gpt-image-1-mini'; // 'chatgpt-image-latest';
6193
6193
  const ai_avatar_response = await client.images.edit({
6194
6194
  model,
6195
6195
  image: image_blob_ret.image_blob,
@@ -6508,7 +6508,8 @@ const create_ai_agent_image = async function (req, job_id, headers) {
6508
6508
  const image_blob_ret = await get_image_blob_from_downloaded_image(url);
6509
6509
  //////////////////
6510
6510
  imageBase64 = Buffer.from(await image_blob_ret.image_blob.arrayBuffer()).toString('base64');
6511
- const model = 'chatgpt-image-latest';
6511
+ // const model = 'chatgpt-image-latest';
6512
+ const model = 'gpt-image-1-mini';
6512
6513
  const ai_avatar_response = await client.images.edit({
6513
6514
  model,
6514
6515
  image: image_blob_ret.image_blob,
@@ -7022,7 +7023,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
7022
7023
  if (factual_image_mode) {
7023
7024
  imageBase64 = await create_image(uid, factual_prompt, undefined, undefined, 1, undefined, undefined, {}, account_profile_info);
7024
7025
  } else {
7025
- const model = 'chatgpt-image-latest';
7026
+ const model = 'gpt-image-1-mini'; // 'chatgpt-image-latest';
7026
7027
  const prompt = `
7027
7028
  extract the logo from the image
7028
7029
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4753",
3
+ "version": "1.1.4755",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",