@xuda.io/ai_module 1.1.5157 → 1.1.5159

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 +1 -11
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4666,16 +4666,6 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4666
4666
  await attachment_handler(uid, app_id, conversation_id, attachments, account_profile_info);
4667
4667
  }
4668
4668
  ////////////
4669
- // if (activate_prompt_suggestions) {
4670
- // debugger;
4671
- // if (!prompt_suggestions.length) {
4672
- // await _utils.delay(10000);
4673
- // }
4674
-
4675
- // if (prompt_suggestions.length) {
4676
- // await render_suggestions();
4677
- // }
4678
- // }
4679
4669
 
4680
4670
  if (activate_prompt_suggestions) {
4681
4671
  // 2. Now wait for it specifically
@@ -4687,6 +4677,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4687
4677
 
4688
4678
  if (prompt_suggestions.length) {
4689
4679
  await render_suggestions();
4680
+ await _utils.delay(10000);
4690
4681
  }
4691
4682
  }
4692
4683
  ///////////
@@ -10891,7 +10882,6 @@ export const get_chat_suggestions = async function (req) {
10891
10882
  const { uid, ai_agents, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model } = req;
10892
10883
 
10893
10884
  try {
10894
- debugger;
10895
10885
  const account_profile_info = await get_active_account_profile_info(uid);
10896
10886
  const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
10897
10887
  const conversation_item_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_item_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5157",
3
+ "version": "1.1.5159",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",