@xuda.io/ai_module 1.1.5185 → 1.1.5187

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4179,6 +4179,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4179
4179
  conversation_doc.stat = 2;
4180
4180
  conversation_doc.ts = Date.now();
4181
4181
  conversation_doc.ai_agents = ai_agents;
4182
+ conversation_doc.job_id = job_id;
4182
4183
  await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_doc);
4183
4184
 
4184
4185
  await update_job('analyzing request');
@@ -4714,7 +4715,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4714
4715
  if (job_info.code < 0 || job_info.data.stat === 4) {
4715
4716
  return { code: 5, data: 'aborted' };
4716
4717
  }
4717
- if (job_info.data.payload.ai_agents) {
4718
+ if (job_info?.data?.payload?.ai_agents) {
4718
4719
  prompt_suggestion_activated = true;
4719
4720
  ai_agents = job_info.data.payload.ai_agents;
4720
4721
  agents = await get_agents();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5185",
3
+ "version": "1.1.5187",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",