@xuda.io/ai_module 1.1.3817 → 1.1.3819

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6252,12 +6252,12 @@ const record_chat_usage = async function (uid, input_tokens, output_tokens, sour
6252
6252
  docType: 'chat_usage',
6253
6253
  msg: msg.substr(0, 40),
6254
6254
  date_created_ts: t,
6255
-
6256
6255
  uid,
6257
6256
  source,
6258
6257
  input_tokens,
6259
6258
  output_tokens,
6260
6259
  };
6260
+ const save_ret = await db_module.save_app_couch_doc(app_id, usage_doc);
6261
6261
  } catch (err) {
6262
6262
  console.error(err);
6263
6263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3817",
3
+ "version": "1.1.3819",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",