@xuda.io/ai_module 1.1.4052 → 1.1.4054

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 +20 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4268,6 +4268,26 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4268
4268
 
4269
4269
  if (conversation_doc.reference_type === 'contacts') {
4270
4270
  account_module.ts_contact(conversation_doc.reference_id);
4271
+ let ret;
4272
+ switch (conversation_doc.conversation_type) {
4273
+ case 'note': {
4274
+ ret = await chat_note(req, job_id, headers);
4275
+ break;
4276
+ }
4277
+ case 'ai': {
4278
+ ret = await ai_chat_conversation(req, job_id, headers);
4279
+ break;
4280
+ }
4281
+
4282
+ case 'chat': {
4283
+ ret = await contact_chat_conversation(req, job_id, headers);
4284
+ break;
4285
+ }
4286
+
4287
+ default:
4288
+ break;
4289
+ }
4290
+
4271
4291
  if (conversation_doc.conversation_type === 'note') {
4272
4292
  return await chat_note(req, job_id, headers);
4273
4293
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4052",
3
+ "version": "1.1.4054",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",