@xuda.io/ai_module 1.1.3845 → 1.1.3846
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
|
@@ -6251,7 +6251,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6251
6251
|
}
|
|
6252
6252
|
};
|
|
6253
6253
|
|
|
6254
|
-
const record_chat_usage = async function (uid, input_tokens, output_tokens, source, prompt) {
|
|
6254
|
+
const record_chat_usage = async function (uid, input_tokens, output_tokens, source, prompt, metadata) {
|
|
6255
6255
|
try {
|
|
6256
6256
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
6257
6257
|
|
|
@@ -6266,6 +6266,7 @@ const record_chat_usage = async function (uid, input_tokens, output_tokens, sour
|
|
|
6266
6266
|
input_tokens,
|
|
6267
6267
|
output_tokens,
|
|
6268
6268
|
stat: 3,
|
|
6269
|
+
metadata,
|
|
6269
6270
|
};
|
|
6270
6271
|
const save_ret = await db_module.save_app_couch_doc(app_id, usage_doc);
|
|
6271
6272
|
// console.log(save_ret);
|