@xuda.io/ai_module 1.1.4325 → 1.1.4327
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 +1 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6724,7 +6724,7 @@ export const is_business_contact = async function (uid, email, name, subject, bo
|
|
|
6724
6724
|
} catch (error) {}
|
|
6725
6725
|
};
|
|
6726
6726
|
|
|
6727
|
-
const get_profile_image = async function (uid, account_type = 'personal', name, facts, account_profile_info) {
|
|
6727
|
+
const get_profile_image = async function (uid, account_type = 'personal', name, facts = {}, account_profile_info) {
|
|
6728
6728
|
function normalizeFilename(name) {
|
|
6729
6729
|
return name
|
|
6730
6730
|
.toLowerCase() // lowercase
|
|
@@ -6815,13 +6815,6 @@ const get_profile_image = async function (uid, account_type = 'personal', name,
|
|
|
6815
6815
|
const drive_ret = await drive_module.upload_drive_file_user({ uid, path: '/Profile Images' }, job_id, headers, file_obj);
|
|
6816
6816
|
|
|
6817
6817
|
record_chat_usage(uid, logo_response.usage.input_tokens, logo_response.usage.output_tokens, 'business logo', prompt, model, { url }, account_profile_info);
|
|
6818
|
-
// prompt: `find "${name}" logo base on the following facts "${facts}", Return only png,jpg img tag , nothing else`,
|
|
6819
|
-
// try {
|
|
6820
|
-
// if (ret.code > -1) {
|
|
6821
|
-
// const data = JSON.parse(ret.data);
|
|
6822
|
-
// return data.is_business;
|
|
6823
|
-
// }
|
|
6824
|
-
// } catch (error) {}
|
|
6825
6818
|
|
|
6826
6819
|
return drive_ret;
|
|
6827
6820
|
} catch (err) {
|