@xuda.io/ai_module 1.1.4983 → 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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3441,7 +3441,6 @@ export const create_conversation = async function (req, job_id, headers) {
3441
3441
  }
3442
3442
 
3443
3443
  setTimeout(async () => {
3444
- debugger;
3445
3444
  if (perform_ai_execution) {
3446
3445
  await process_conversation(uid, conversation_doc._id, account_profile_info, job_id, headers);
3447
3446
  }
@@ -3509,7 +3508,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
3509
3508
  }
3510
3509
  /// categorize prompt
3511
3510
  let category_info = {};
3512
- if (prompt?.length > 5) {
3511
+ if (prompt?.length > 1) {
3513
3512
  switch (conversation_type) {
3514
3513
  case 'ai': {
3515
3514
  category_info = await categorize_ai_prompt(uid, prompt, account_profile_info);
@@ -3535,6 +3534,8 @@ const process_conversation = async function (uid, conversation_id, account_profi
3535
3534
  category_info = { category: 'unknown' };
3536
3535
  break;
3537
3536
  }
3537
+ } else {
3538
+ category_info.category = 'unknown';
3538
3539
  }
3539
3540
 
3540
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.4983",
3
+ "version": "1.1.4985",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",