@xuda.io/account_module 1.2.1835 → 1.2.1836
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
|
@@ -3373,7 +3373,7 @@ export const save_cache_hit = async function (_id) {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
};
|
|
3375
3375
|
|
|
3376
|
-
export const record_ai_usage = async function (uid, input_tokens, output_tokens, source, prompt, model, metadata = {}, account_profile_info) {
|
|
3376
|
+
export const record_ai_usage = async function (uid, input_tokens, output_tokens, source, prompt, model, metadata = {}, account_profile_info, tools) {
|
|
3377
3377
|
try {
|
|
3378
3378
|
if (!account_profile_info) throw new Error('missing account_profile_info');
|
|
3379
3379
|
|
|
@@ -3397,6 +3397,7 @@ export const record_ai_usage = async function (uid, input_tokens, output_tokens,
|
|
|
3397
3397
|
model,
|
|
3398
3398
|
cost,
|
|
3399
3399
|
account_profile_info,
|
|
3400
|
+
tools,
|
|
3400
3401
|
};
|
|
3401
3402
|
const save_ret = await db_module.save_couch_doc('xuda_usage', usage_doc);
|
|
3402
3403
|
// console.log(save_ret);
|