@xuda.io/ai_module 1.1.5363 → 1.1.5365

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4058,6 +4058,7 @@ const chat_email = async function (req, job_id, headers) {
4058
4058
  };
4059
4059
 
4060
4060
  const ai_chat_conversation = async function (req, job_id, headers) {
4061
+ debugger;
4061
4062
  const { uid, gtp_token, profile_id, conversation_item_id } = req;
4062
4063
  const account_profile_info = await get_active_account_profile_info(uid, profile_id);
4063
4064
  let { prompt, conversation_doc, attachments = [], ai_agents, output_format = 'md', stream = true, with_context = true, ai_model = _conf.default_ai_model } = req;
@@ -4195,10 +4196,12 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4195
4196
  const job_info = await jobs_ms.get_job_info({ job_id });
4196
4197
 
4197
4198
  if (job_info.code < 0 || job_info.data.stat === 4) {
4199
+ debugger;
4198
4200
  resolve({ code: -1, data: 'aborted' });
4199
4201
  clearInterval(interval);
4200
4202
  }
4201
4203
  if (job_info?.data?.payload?.skip_suggestions) {
4204
+ debugger;
4202
4205
  resolve({ code: -1, data: 'skipped' });
4203
4206
  clearInterval(interval);
4204
4207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5363",
3
+ "version": "1.1.5365",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",