Merge branch '33069_llm_token_usage' into 'master'
#33069 - LLM Token Usage - DB Tracking See merge request !129
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) { | ... | ... |
-
Please register or sign in to post a comment