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) { ...@@ -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 });
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!