@xuda.io/ai_module 1.1.3631 → 1.1.3633
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 +2 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3077,9 +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
|
-
|
|
3081
|
-
|
|
3082
|
-
images_arr = await create_ai_agent_image({ app_id, uid, ai_agent_id: db_doc._id }, job_id, headers);
|
|
3080
|
+
images_arr = await create_ai_agent_image({ app_id, uid, ai_agent_id: doc._id }, job_id, headers);
|
|
3083
3081
|
db_doc = await get_db_doc();
|
|
3084
3082
|
db_doc.studio_meta.thumbnail_request_ts = Date.now();
|
|
3085
3083
|
db_doc.studio_meta.agent_image = images_arr;
|
|
@@ -5703,7 +5701,7 @@ const delete_depended_chats = async function (uid, reference_id) {
|
|
|
5703
5701
|
}
|
|
5704
5702
|
};
|
|
5705
5703
|
|
|
5706
|
-
|
|
5704
|
+
const create_ai_agent_image = async function (req, job_id, headers) {
|
|
5707
5705
|
async function normalizeBase64To1024(base64Image) {
|
|
5708
5706
|
const inputBuffer = Buffer.from(base64Image, 'base64');
|
|
5709
5707
|
|