@xuda.io/ai_module 1.1.4122 → 1.1.4124
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1724,6 +1724,8 @@ export const get_chat_conversation = async function (req) {
|
|
|
1724
1724
|
export const get_ai_chats = async function (req, job_id, headers) {
|
|
1725
1725
|
let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
|
|
1726
1726
|
|
|
1727
|
+
const account_info = await account_module.get_account_name({ uid });
|
|
1728
|
+
|
|
1727
1729
|
const get_conversation_background = function (doc) {
|
|
1728
1730
|
let deg = 145;
|
|
1729
1731
|
|
|
@@ -5476,7 +5478,7 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
|
|
|
5476
5478
|
}
|
|
5477
5479
|
};
|
|
5478
5480
|
|
|
5479
|
-
const create_and_upload_image_to_drive = async function (drive_type, file_path, file_name, prompt, numGenerations, uid, app_id, job_id, headers, is_system, tags = [], width, height) {
|
|
5481
|
+
const create_and_upload_image_to_drive = async function (drive_type, file_path, file_name, prompt, numGenerations, uid, app_id, job_id, headers = {}, is_system, tags = [], width, height) {
|
|
5480
5482
|
try {
|
|
5481
5483
|
// 1. Generate the images
|
|
5482
5484
|
let result = await create_image(uid, prompt, undefined, undefined, numGenerations, undefined, undefined, { drive_type, file_path, file_name });
|