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