@xuda.io/ai_module 1.1.4415 → 1.1.4417
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3357,13 +3357,14 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3357
3357
|
}
|
|
3358
3358
|
|
|
3359
3359
|
case 'conversation': {
|
|
3360
|
+
debugger;
|
|
3360
3361
|
prompt = `create image: ${doc.title}`;
|
|
3361
3362
|
let images_arr;
|
|
3362
|
-
const cache = await account_module.get_picture_cache(uid, 'chat_thumbnail',
|
|
3363
|
+
const cache = await account_module.get_picture_cache(uid, 'chat_thumbnail', doc.title);
|
|
3363
3364
|
images_arr = cache;
|
|
3364
3365
|
if (!cache) {
|
|
3365
3366
|
images_arr = await create_and_upload_image_to_drive('user', 'Chat Thumbnails', doc._id, prompt, 1, uid, app_id, job_id, headers, true, tags, account_profile_info);
|
|
3366
|
-
account_module.save_picture_cache(uid, 'chat_thumbnail',
|
|
3367
|
+
account_module.save_picture_cache(uid, 'chat_thumbnail', doc.title, images_arr[0], { tags });
|
|
3367
3368
|
}
|
|
3368
3369
|
db_doc = await get_db_doc();
|
|
3369
3370
|
db_doc.thumbnail_request_ts = Date.now();
|