@xuda.io/ai_module 1.1.4053 → 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 +11 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4268,9 +4268,19 @@ 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
-
4271
+ let ret;
4272
4272
  switch (conversation_doc.conversation_type) {
4273
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);
4274
4284
  break;
4275
4285
  }
4276
4286
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4053",
3
+ "version": "1.1.4054",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",