28594_usage_tracking
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -202,7 +202,7 @@ async function runGPTTurbo(req, res) { | ... | @@ -202,7 +202,7 @@ async function runGPTTurbo(req, res) { |
| 202 | usage.total_tokens = usage.prompt_tokens + usage.completion_tokens; | 202 | usage.total_tokens = usage.prompt_tokens + usage.completion_tokens; |
| 203 | 203 | ||
| 204 | // TOKEN USAGE | 204 | // TOKEN USAGE |
| 205 | axios.post(`${process.env.API_URL}e/set-chat-usage`, | 205 | axios.post(`${process.env.API_URL}/e/set-chat-usage`, |
| 206 | { aiwp_logged_in: req.cookies[user_secret_id], app: 'chatbot', prompt_token: usage.prompt_tokens, total_token: usage.total_tokens }, | 206 | { aiwp_logged_in: req.cookies[user_secret_id], app: 'chatbot', prompt_token: usage.prompt_tokens, total_token: usage.total_tokens }, |
| 207 | { headers: { 'content-type': 'application/x-www-form-urlencoded' } | 207 | { headers: { 'content-type': 'application/x-www-form-urlencoded' } |
| 208 | }); | 208 | }); | ... | ... |
-
Please register or sign in to post a comment