@xuda.io/ai_module 1.1.4654 → 1.1.4655
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4300,6 +4300,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4300
4300
|
const process_conversation = async function (uid, conversation_id, account_profile_info, job_id, headers) {
|
|
4301
4301
|
let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
|
|
4302
4302
|
const { conversation_type } = conversation_doc;
|
|
4303
|
+
|
|
4303
4304
|
// Ask GPT for title
|
|
4304
4305
|
if (conversation_type !== 'email') {
|
|
4305
4306
|
if (prompt.split(' ').length > 10) {
|
|
@@ -4353,7 +4354,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
|
|
|
4353
4354
|
|
|
4354
4355
|
const conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_doc._id);
|
|
4355
4356
|
|
|
4356
|
-
const recipient_account_profile_info = await
|
|
4357
|
+
const recipient_account_profile_info = await account_module.get_active_account_profile_info(recipient_uid);
|
|
4357
4358
|
let recipient_conversation_doc = await db_module.get_app_couch_doc_native(recipient_account_profile_info.app_id, conversation_doc._id);
|
|
4358
4359
|
recipient_conversation_doc.title = conversation_doc.title;
|
|
4359
4360
|
|