Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b8f1acee
authored
2024-10-25 13:20:35 +0800
by
Marwin Cañeta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#33069 - LLM Token Usage - DB Tracking
1 parent
4b88ee48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
index.js
index.js
View file @
b8f1ace
...
...
@@ -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
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment