@xuda.io/ai_module 1.1.4758 → 1.1.4760
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 +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3433,6 +3433,7 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3433
3433
|
|
|
3434
3434
|
switch (type) {
|
|
3435
3435
|
case 'ai_agent': {
|
|
3436
|
+
debugger;
|
|
3436
3437
|
const images_arr = await create_ai_agent_image({ app_id, uid, ai_agent_id: doc._id, tags }, job_id, headers);
|
|
3437
3438
|
db_doc = await get_db_doc();
|
|
3438
3439
|
db_doc.studio_meta.thumbnail_request_ts = Date.now();
|
|
@@ -6457,10 +6458,11 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6457
6458
|
const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(7);
|
|
6458
6459
|
const tempOutputPath = path.join(tempDir, `output_${uniqueId}.png`);
|
|
6459
6460
|
|
|
6460
|
-
const { app_id, uid, ai_agent_id, tags
|
|
6461
|
-
|
|
6462
|
-
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
6461
|
+
const { app_id, uid, ai_agent_id, tags } = req;
|
|
6462
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
6463
|
+
const ai_agent_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, ai_agent_id);
|
|
6463
6464
|
const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
6465
|
+
|
|
6464
6466
|
// faceless humanoid for business
|
|
6465
6467
|
if (account_doc.account_info.account_type === 'business') {
|
|
6466
6468
|
const prompt = `
|