@xuda.io/ai_module 1.1.3639 → 1.1.3641
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3077,7 +3077,7 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3077
3077
|
// }
|
|
3078
3078
|
|
|
3079
3079
|
case 'ai_agent': {
|
|
3080
|
-
const images_arr = await create_ai_agent_image({ app_id, uid, ai_agent_id: doc._id }, job_id, headers);
|
|
3080
|
+
const images_arr = await create_ai_agent_image({ app_id, uid, ai_agent_id: doc._id, tags }, job_id, headers);
|
|
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;
|
|
@@ -5768,7 +5768,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5768
5768
|
return { is_transparent, image_blob: new Blob([buffer], { type: 'image/png' }) };
|
|
5769
5769
|
}
|
|
5770
5770
|
|
|
5771
|
-
const { app_id, uid, ai_agent_id } = req;
|
|
5771
|
+
const { app_id, uid, ai_agent_id, tags } = req;
|
|
5772
5772
|
|
|
5773
5773
|
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
5774
5774
|
const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
@@ -5808,7 +5808,8 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5808
5808
|
|
|
5809
5809
|
`;
|
|
5810
5810
|
//and a hat
|
|
5811
|
-
const images_arr = await create_and_upload_image_to_drive('studio', 'Progs Thumbnails',
|
|
5811
|
+
const images_arr = await create_and_upload_image_to_drive('studio', 'Progs Thumbnails', ai_agent_id, prompt, 1, uid, app_id, job_id, headers, false, tags);
|
|
5812
|
+
return images_arr;
|
|
5812
5813
|
}
|
|
5813
5814
|
|
|
5814
5815
|
let url = account_doc.account_info.profile_avatar;
|