@xuda.io/ai_module 1.1.5594 → 1.1.5595

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 +30 -30
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4375,7 +4375,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4375
4375
  }
4376
4376
 
4377
4377
  case 'dashboard': {
4378
- //??
4378
+ // ??
4379
4379
  break;
4380
4380
  }
4381
4381
 
@@ -4384,40 +4384,40 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4384
4384
  break;
4385
4385
  }
4386
4386
 
4387
- if (route_to_studio) {
4388
- ret = await chat_studio(req, job_id, headers);
4389
- } else if (conversation_doc.reference_type === 'contacts') {
4390
- req._thread_reentry = Date.now() - conversation_doc.date_created_ts > 60000;
4387
+ // if (route_to_studio) {
4388
+ // ret = await chat_studio(req, job_id, headers);
4389
+ // } else if (conversation_doc.reference_type === 'contacts') {
4390
+ // req._thread_reentry = Date.now() - conversation_doc.date_created_ts > 60000;
4391
4391
 
4392
- account_msa.ts_contact(uid, conversation_doc.reference_id);
4392
+ // account_msa.ts_contact(uid, conversation_doc.reference_id);
4393
4393
 
4394
- switch (conversation_doc.conversation_type) {
4395
- case 'note': {
4396
- ret = await chat_note(req, job_id, headers);
4397
- break;
4398
- }
4399
- case 'ai_chat': {
4400
- ret = await ai_chat_conversation(req, job_id, headers);
4401
- break;
4402
- }
4394
+ // switch (conversation_doc.conversation_type) {
4395
+ // case 'note': {
4396
+ // ret = await chat_note(req, job_id, headers);
4397
+ // break;
4398
+ // }
4399
+ // case 'ai_chat': {
4400
+ // ret = await ai_chat_conversation(req, job_id, headers);
4401
+ // break;
4402
+ // }
4403
4403
 
4404
- case 'email': {
4405
- ret = await chat_email(req, job_id, headers);
4406
- break;
4407
- }
4404
+ // case 'email': {
4405
+ // ret = await chat_email(req, job_id, headers);
4406
+ // break;
4407
+ // }
4408
4408
 
4409
- case 'chat': {
4410
- ret = await contact_chat_conversation(req, job_id, headers);
4411
- break;
4412
- }
4409
+ // case 'chat': {
4410
+ // ret = await contact_chat_conversation(req, job_id, headers);
4411
+ // break;
4412
+ // }
4413
4413
 
4414
- default:
4415
- ret = { code: -44, data: 'invalid conversation_type ' + conversation_doc.conversation_type };
4416
- break;
4417
- }
4418
- } else {
4419
- ret = await ai_chat_conversation(req, job_id, headers);
4420
- }
4414
+ // default:
4415
+ // ret = { code: -44, data: 'invalid conversation_type ' + conversation_doc.conversation_type };
4416
+ // break;
4417
+ // }
4418
+ // } else {
4419
+ // ret = await ai_chat_conversation(req, job_id, headers);
4420
+ // }
4421
4421
 
4422
4422
  if (ret.code > -1) {
4423
4423
  let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5594",
3
+ "version": "1.1.5595",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",