3f4eaff9 by Administrator

Merge branch '33069_llm_token_usage' into 'master'

#33069 - LLM Token Usage - DB Tracking

See merge request !129
2 parents aca806d2 b8f1acee
Pipeline #30606 for 3f4eaff9 passed in 17 seconds
Showing 1 changed file with 4 additions and 2 deletions
......@@ -256,7 +256,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) {
......@@ -345,7 +346,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!