@xuda.io/ai_module 1.1.5143 → 1.1.5145
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
|
@@ -4076,7 +4076,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4076
4076
|
direction: 'out',
|
|
4077
4077
|
role: 'user',
|
|
4078
4078
|
};
|
|
4079
|
-
const out_conversation_item_save_ret = await db_module.
|
|
4079
|
+
const out_conversation_item_save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, out_conversation_item_obj);
|
|
4080
4080
|
|
|
4081
4081
|
// const { account_profile_info } = conversation_doc;
|
|
4082
4082
|
const emitToDashboard = (type, content) => {
|
|
@@ -4744,6 +4744,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4744
4744
|
// if (!conversation_doc.chat_image && (!conversation_doc.thumbnail_request_ts || Date.now() - conversation_doc.thumbnail_request_ts > 120000)) {
|
|
4745
4745
|
// update_thumbnail('conversation', conversation_doc, app_id, uid, job_id, headers);
|
|
4746
4746
|
// }
|
|
4747
|
+
|
|
4748
|
+
return save_ret;
|
|
4747
4749
|
} catch (error) {
|
|
4748
4750
|
debugger;
|
|
4749
4751
|
}
|
|
@@ -4787,7 +4789,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4787
4789
|
}
|
|
4788
4790
|
// else {
|
|
4789
4791
|
await update_job('finalizing');
|
|
4790
|
-
await done(output);
|
|
4792
|
+
const save_ret = await done(output);
|
|
4791
4793
|
return {
|
|
4792
4794
|
code: 4,
|
|
4793
4795
|
data: save_ret,
|