@xuda.io/ai_module 1.1.5209 → 1.1.5210

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 +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4189,11 +4189,12 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4189
4189
 
4190
4190
  if (job_info.code < 0 || job_info.data.stat === 4) {
4191
4191
  resolve({ code: -1, data: 'aborted' });
4192
+ clearInterval(interval);
4192
4193
  }
4193
- if (job_info?.data?.payload?.ai_agents) {
4194
+ if (job_info?.data?.payload?.skip_suggestions) {
4195
+ resolve({ code: -1, data: 'skipped' });
4196
+ clearInterval(interval);
4194
4197
  }
4195
-
4196
- clearInterval(interval);
4197
4198
  }, 1000);
4198
4199
  const ret = await get_chat_suggestions({ uid, ai_agents, conversation_item_id: out_conversation_item_save_ret.data.id, context: prompt });
4199
4200
  clearInterval(interval);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5209",
3
+ "version": "1.1.5210",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",