@xuda.io/ai_module 1.1.5377 → 1.1.5379

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
@@ -4198,13 +4198,13 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4198
4198
 
4199
4199
  if (job_info.code < 0 || job_info.data.stat === 4) {
4200
4200
  debugger;
4201
- resolve({ code: -1, data: 'aborted' });
4202
4201
  clearInterval(interval);
4202
+ resolve({ code: -1, data: 'aborted' });
4203
4203
  }
4204
4204
  if (job_info?.data?.payload?.skip_suggestions) {
4205
4205
  debugger;
4206
- resolve({ code: -1, data: 'skipped' });
4207
4206
  clearInterval(interval);
4207
+ resolve({ code: -1, data: 'skipped' });
4208
4208
  }
4209
4209
  }, 500);
4210
4210
  const ret = await get_chat_suggestions({ uid, type: 'chat prompt', ai_agents, conversation_item_id: out_conversation_item_save_ret.data.id, context: prompt });
@@ -4747,6 +4747,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4747
4747
  const job_info = await jobs_ms.get_job_info({ job_id });
4748
4748
 
4749
4749
  if (counter > 40) {
4750
+ clearInterval(interval);
4750
4751
  resolve(null);
4751
4752
  } else {
4752
4753
  if (job_info.code < 0 || job_info.data.stat === 4) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5377",
3
+ "version": "1.1.5379",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",