0abe599b by Jonille Arreglo

28594_usage_tracking

1 parent 9751bbbd
......@@ -125,7 +125,7 @@ function App() {
userModifiedInput = "";
}
if(data.usage) {
btutil_setChatUsage('chatbot+', data.usage.prompt_tokens, data.usage.total_tokens);
window.btutil_setChatUsage('chatbot+', data.usage.prompt_tokens, data.usage.total_tokens);
}
chatLogTurboNew.push({ role: "user", content: userModifiedInput });
chatLogTurboNew.push({ role: "assistant", content: parsedData });
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!