@xuda.io/ai_module 1.1.3797 → 1.1.3798

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
@@ -4130,6 +4130,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4130
4130
  let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
4131
4131
  req.conversation_doc = conversation_doc;
4132
4132
  if (conversation_doc.conversation_type === 'note') {
4133
+ return await chat_note(req, job_id, header);
4133
4134
  } else {
4134
4135
  if (conversation_doc.reference_type === 'contacts') {
4135
4136
  return await contact_chat_conversation(req, job_id, headers);
@@ -4236,7 +4237,7 @@ const contact_chat_conversation = async function (req, job_id, headers) {
4236
4237
  return { code: 15, data: item };
4237
4238
  };
4238
4239
 
4239
- const contact_chat_note = async function (req, job_id, headers) {
4240
+ const chat_note = async function (req, job_id, headers) {
4240
4241
  const { uid } = req;
4241
4242
  let { prompt, conversation_doc, attachments = [], ai_agents } = req;
4242
4243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3797",
3
+ "version": "1.1.3798",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",