b8f1acee by Marwin Cañeta

#33069 - LLM Token Usage - DB Tracking

1 parent 4b88ee48
Showing 1 changed file with 4 additions and 2 deletions
......@@ -255,7 +255,8 @@ async function runGPTTurbo(req, res) {
"total_token": usage.total_tokens,
"aiwp_app_id": aiwp_app_id,
"usage_tries": TRIED_USAGE,
ipdflu: getClientIP(req)
ipdflu: getClientIP(req),
model: currentModel
};
if (IS_FREE_USER) {
......@@ -344,7 +345,8 @@ async function runOpensource(req, res) {
"total_token": usage.total_tokens,
"aiwp_app_id": aiwp_app_id,
"usage_tries": TRIED_USAGE,
ipdflu: getClientIP(req)
ipdflu: getClientIP(req),
model: currentModel
};
if (IS_FREE_USER) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!