@xuda.io/ai_module 1.1.3814 → 1.1.3816
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 +5 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6242,7 +6242,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6242
6242
|
}
|
|
6243
6243
|
};
|
|
6244
6244
|
|
|
6245
|
-
const record_chat_usage = async function (uid, input_tokens, output_tokens, msg) {
|
|
6245
|
+
const record_chat_usage = async function (uid, input_tokens, output_tokens, source, msg) {
|
|
6246
6246
|
try {
|
|
6247
6247
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
6248
6248
|
|
|
@@ -6255,12 +6255,10 @@ const record_chat_usage = async function (uid, input_tokens, output_tokens, msg)
|
|
|
6255
6255
|
ts: t,
|
|
6256
6256
|
stat: 1,
|
|
6257
6257
|
uid,
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
conversation_type,
|
|
6263
|
-
initiator_uid: uid,
|
|
6258
|
+
source,
|
|
6259
|
+
input_tokens,
|
|
6260
|
+
output_tokens,
|
|
6261
|
+
msg,
|
|
6264
6262
|
};
|
|
6265
6263
|
} catch (err) {
|
|
6266
6264
|
console.error(err);
|