@xuda.io/ai_module 1.1.4660 → 1.1.4661
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4314,7 +4314,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
|
|
|
4314
4314
|
}
|
|
4315
4315
|
/// categorize prompt
|
|
4316
4316
|
let category_info = { category: 'unknown' };
|
|
4317
|
-
if (prompt?.length > 5)
|
|
4317
|
+
if (prompt?.length > 5) {
|
|
4318
4318
|
switch (conversation_type) {
|
|
4319
4319
|
case 'ai': {
|
|
4320
4320
|
category_info = await categorize_ai_prompt(uid, prompt, account_profile_info);
|
|
@@ -4339,7 +4339,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
|
|
|
4339
4339
|
default:
|
|
4340
4340
|
break;
|
|
4341
4341
|
}
|
|
4342
|
-
|
|
4342
|
+
}
|
|
4343
4343
|
conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_doc._id);
|
|
4344
4344
|
contact_doc.category_info = category_info;
|
|
4345
4345
|
await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_doc);
|