@xuda.io/ai_module 1.1.3816 → 1.1.3818
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 +1 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6250,15 +6250,12 @@ const record_chat_usage = async function (uid, input_tokens, output_tokens, sour
|
|
|
6250
6250
|
let usage_doc = {
|
|
6251
6251
|
_id: conversation_obj.id,
|
|
6252
6252
|
docType: 'chat_usage',
|
|
6253
|
-
|
|
6253
|
+
msg: msg.substr(0, 40),
|
|
6254
6254
|
date_created_ts: t,
|
|
6255
|
-
ts: t,
|
|
6256
|
-
stat: 1,
|
|
6257
6255
|
uid,
|
|
6258
6256
|
source,
|
|
6259
6257
|
input_tokens,
|
|
6260
6258
|
output_tokens,
|
|
6261
|
-
msg,
|
|
6262
6259
|
};
|
|
6263
6260
|
} catch (err) {
|
|
6264
6261
|
console.error(err);
|