@xuda.io/ai_module 1.1.4568 → 1.1.4570

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4538,7 +4538,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4538
4538
  docType: 'chat_conversation_item',
4539
4539
  uid,
4540
4540
  conversation_type: 'ai_chat',
4541
- type: obj.conversation_type,
4541
+ type: 'ai_chat',
4542
4542
  date_created_ts: Date.now(),
4543
4543
  ts: Date.now(),
4544
4544
  conversation_id,
@@ -4547,7 +4547,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4547
4547
  direction: 'out',
4548
4548
  role: 'user',
4549
4549
  };
4550
- await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_item_obj);
4550
+ await db_module.save_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_obj);
4551
4551
 
4552
4552
  // const { account_profile_info } = conversation_doc;
4553
4553
  const emitToDashboard = (type, content) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4568",
3
+ "version": "1.1.4570",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",