@xuda.io/ai_module 1.1.5449 → 1.1.5450
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.
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3514,7 +3514,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3514
3514
|
title: conversation_type !== 'email' ? getFirstNWords(prompt, 10) : prompt,
|
|
3515
3515
|
date_created_ts: date_created ? new Date(date_created).getTime() : d,
|
|
3516
3516
|
ts: d,
|
|
3517
|
-
stat: !conversation_type || conversation_type === '
|
|
3517
|
+
stat: !conversation_type || conversation_type === 'ai_chat' ? 1 : 3,
|
|
3518
3518
|
uid,
|
|
3519
3519
|
messages: [],
|
|
3520
3520
|
reference_type,
|
|
@@ -3628,7 +3628,7 @@ const process_conversation = async function (uid, conversation_id, account_profi
|
|
|
3628
3628
|
let category_info = {};
|
|
3629
3629
|
if (prompt?.length > 1) {
|
|
3630
3630
|
switch (conversation_type) {
|
|
3631
|
-
case '
|
|
3631
|
+
case 'ai_chat': {
|
|
3632
3632
|
category_info = await categorize_ai_prompt(uid, prompt, account_profile_info);
|
|
3633
3633
|
break;
|
|
3634
3634
|
}
|
|
@@ -3724,7 +3724,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
3724
3724
|
ret = await chat_note(req, job_id, headers);
|
|
3725
3725
|
break;
|
|
3726
3726
|
}
|
|
3727
|
-
case '
|
|
3727
|
+
case 'ai_chat': {
|
|
3728
3728
|
ret = await ai_chat_conversation(req, job_id, headers);
|
|
3729
3729
|
break;
|
|
3730
3730
|
}
|