87e01071 by Jonille Arreglo

28594_usage_tracking

1 parent d87c4f75
Showing 1 changed file with 1 additions and 1 deletions
......@@ -202,7 +202,7 @@ async function runGPTTurbo(req, res) {
usage.total_tokens = usage.prompt_tokens + usage.completion_tokens;
// TOKEN USAGE
axios.post(`${process.env.API_URL}e/set-chat-usage`,
axios.post(`${process.env.API_URL}/e/set-chat-usage`,
{ aiwp_logged_in: req.cookies[user_secret_id], app: 'chatbot', prompt_token: usage.prompt_tokens, total_token: usage.total_tokens },
{ headers: { 'content-type': 'application/x-www-form-urlencoded' }
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!