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) { ...@@ -255,7 +255,8 @@ async function runGPTTurbo(req, res) {
255 "total_token": usage.total_tokens, 255 "total_token": usage.total_tokens,
256 "aiwp_app_id": aiwp_app_id, 256 "aiwp_app_id": aiwp_app_id,
257 "usage_tries": TRIED_USAGE, 257 "usage_tries": TRIED_USAGE,
258 ipdflu: getClientIP(req) 258 ipdflu: getClientIP(req),
259 model: currentModel
259 }; 260 };
260 261
261 if (IS_FREE_USER) { 262 if (IS_FREE_USER) {
...@@ -344,7 +345,8 @@ async function runOpensource(req, res) { ...@@ -344,7 +345,8 @@ async function runOpensource(req, res) {
344 "total_token": usage.total_tokens, 345 "total_token": usage.total_tokens,
345 "aiwp_app_id": aiwp_app_id, 346 "aiwp_app_id": aiwp_app_id,
346 "usage_tries": TRIED_USAGE, 347 "usage_tries": TRIED_USAGE,
347 ipdflu: getClientIP(req) 348 ipdflu: getClientIP(req),
349 model: currentModel
348 }; 350 };
349 351
350 if (IS_FREE_USER) { 352 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!