@xuda.io/ai_module 1.1.4644 → 1.1.4646
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 +9 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4218,16 +4218,17 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4218
4218
|
}
|
|
4219
4219
|
}
|
|
4220
4220
|
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
default:
|
|
4228
|
-
break;
|
|
4221
|
+
const category_info = {};
|
|
4222
|
+
switch (conversation_type) {
|
|
4223
|
+
case 'email': {
|
|
4224
|
+
category_info = await categorize_email_subject(uid, prompt, account_profile_info);
|
|
4225
|
+
break;
|
|
4229
4226
|
}
|
|
4230
4227
|
|
|
4228
|
+
default:
|
|
4229
|
+
break;
|
|
4230
|
+
}
|
|
4231
|
+
if (perform_ai_execution) {
|
|
4231
4232
|
// await update_thumbnail('conversation', conversation_doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
|
|
4232
4233
|
}
|
|
4233
4234
|
if (conversation_doc.reference_type === 'contacts') {
|