@xuda.io/ai_module 1.1.5345 → 1.1.5347

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 +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4209,13 +4209,12 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4209
4209
  };
4210
4210
 
4211
4211
  const render_output_suggestions = async function (response_conversation_item_id) {
4212
- debugger;
4213
4212
  console.log('prompt_suggestions', prompt_suggestions);
4214
4213
  const exclude_agents = prompt_suggestions.map((agent) => agent.agent_id);
4215
4214
  const ret = await get_chat_suggestions({ uid, type: 'chat response', ai_agents, conversation_item_id: response_conversation_item_id, exclude_agents });
4216
4215
 
4217
4216
  if (ret && ret.code > -1) {
4218
- emitToDashboard('stream_start');
4217
+ // emitToDashboard('stream_start');
4219
4218
  emitToDashboard('suggestions', JSON.stringify(ret.data));
4220
4219
  // emitToDashboard('stream_end');
4221
4220
  }
@@ -4811,9 +4810,10 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4811
4810
  prompt_suggestion_activated = true;
4812
4811
  local_ai_agents = prompt_selected_suggestion;
4813
4812
  agents = await get_agents();
4814
- } else {
4815
- emitToDashboard('response_start');
4816
4813
  }
4814
+ // else {
4815
+ // emitToDashboard('response_start');
4816
+ // }
4817
4817
  }
4818
4818
  }
4819
4819
  ///////////
@@ -4959,7 +4959,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4959
4959
  // console.log('string_debug', string_debug);
4960
4960
  }
4961
4961
  // else {
4962
- await update_job('finalizing');
4962
+ // await update_job('finalizing');
4963
4963
 
4964
4964
  const save_ret = await done(output);
4965
4965
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5345",
3
+ "version": "1.1.5347",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",