@xuda.io/ai_module 1.1.4984 → 1.1.4985

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.
Files changed (2) hide show
  1. package/index.mjs +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3508,7 +3508,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
3508
3508
  }
3509
3509
  /// categorize prompt
3510
3510
  let category_info = {};
3511
- if (prompt?.length > 5) {
3511
+ if (prompt?.length > 1) {
3512
3512
  switch (conversation_type) {
3513
3513
  case 'ai': {
3514
3514
  category_info = await categorize_ai_prompt(uid, prompt, account_profile_info);
@@ -3534,6 +3534,8 @@ const process_conversation = async function (uid, conversation_id, account_profi
3534
3534
  category_info = { category: 'unknown' };
3535
3535
  break;
3536
3536
  }
3537
+ } else {
3538
+ category_info.category = 'unknown';
3537
3539
  }
3538
3540
 
3539
3541
  conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_doc._id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4984",
3
+ "version": "1.1.4985",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",