@xuda.io/ai_module 1.1.4883 → 1.1.4885
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 +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -66,6 +66,8 @@ const db_module = await import(`${module_path}/db_module/index.mjs`);
|
|
|
66
66
|
const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
67
67
|
const jobs_module = await import(`${module_path}/jobs_module/index.mjs`);
|
|
68
68
|
|
|
69
|
+
const account_ms = await import(`${module_path}/account_module/index_ms.mjs`);
|
|
70
|
+
|
|
69
71
|
var open_ai_status = {};
|
|
70
72
|
const report_ai_status = function (model, err) {
|
|
71
73
|
open_ai_status[model] = { stat: err ? 'error' : 'ok', date: new Date(), err };
|
|
@@ -3972,7 +3974,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
3972
3974
|
|
|
3973
3975
|
let out_conversation_item_obj = {
|
|
3974
3976
|
_id: await _common.xuda_get_uuid('chat_conversation_item'),
|
|
3975
|
-
stat: 1,
|
|
3977
|
+
stat: 3, //1,
|
|
3976
3978
|
docType: 'chat_conversation_item',
|
|
3977
3979
|
uid,
|
|
3978
3980
|
conversation_type: 'ai_chat',
|
|
@@ -4644,7 +4646,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4644
4646
|
let conversation_items = await client.conversations.items.list(conversation_doc.reference_conversation_id, { order: 'asc', after: last_conversation_item });
|
|
4645
4647
|
|
|
4646
4648
|
let out_conversation_item_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_obj._id);
|
|
4647
|
-
out_conversation_item_doc.stat = 3;
|
|
4649
|
+
// out_conversation_item_doc.stat = 3;
|
|
4648
4650
|
out_conversation_item_doc.conversation_item_reference_id = conversation_items?.data?.[0]?.id;
|
|
4649
4651
|
await db_module.save_app_couch_doc_native(account_profile_info.app_id, out_conversation_item_doc);
|
|
4650
4652
|
|