@xuda.io/ai_module 1.1.3833 → 1.1.3835
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5004,7 +5004,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
5004
5004
|
// console.log(items.data);
|
|
5005
5005
|
|
|
5006
5006
|
conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
5007
|
-
|
|
5007
|
+
|
|
5008
5008
|
conversation_doc.ts = Date.now();
|
|
5009
5009
|
conversation_doc.stat = 2;
|
|
5010
5010
|
conversation_doc.messages = [...conversation_doc.messages, ...system_message_items];
|
|
@@ -6261,6 +6261,7 @@ const record_chat_usage = async function (uid, input_tokens, output_tokens, sour
|
|
|
6261
6261
|
stat: 3,
|
|
6262
6262
|
};
|
|
6263
6263
|
const save_ret = await db_module.save_app_couch_doc(app_id, usage_doc);
|
|
6264
|
+
console.log(save_ret);
|
|
6264
6265
|
} catch (err) {
|
|
6265
6266
|
console.error(err);
|
|
6266
6267
|
}
|