@xuda.io/ai_module 1.1.3768 → 1.1.3769
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2697,7 +2697,6 @@ export const update_ai_agent = async function (req, job_id, headers) {
|
|
|
2697
2697
|
|
|
2698
2698
|
const data = await db_module.save_app_couch_doc_native(app_id, agent_doc);
|
|
2699
2699
|
|
|
2700
|
-
// update_thumbnail('ai_agent', agent_doc, app_id, uid, job_id, headers);
|
|
2701
2700
|
setTimeout(async () => {
|
|
2702
2701
|
if (!name_changed) return;
|
|
2703
2702
|
await update_ai_agent_properties(agent_doc, app_id);
|
|
@@ -5930,7 +5929,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5930
5929
|
|
|
5931
5930
|
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
5932
5931
|
const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5933
|
-
|
|
5932
|
+
// faceless humanoid for business
|
|
5934
5933
|
if (account_doc.account_info.account_type === 'business') {
|
|
5935
5934
|
const prompt = `
|
|
5936
5935
|
Create a futuristic, faceless humanoid profile portrait with a transparent background.
|
|
@@ -5969,7 +5968,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5969
5968
|
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);
|
|
5970
5969
|
return images_arr[0];
|
|
5971
5970
|
}
|
|
5972
|
-
|
|
5971
|
+
|
|
5973
5972
|
let url = account_doc.account_info.profile_avatar;
|
|
5974
5973
|
|
|
5975
5974
|
try {
|