006c6848 by Jonille Arreglo

Merge branch '28594_usage_tracking' into 'master'

28594_usage_tracking

See merge request !77
2 parents 6f8385ce 0abe599b
...@@ -125,7 +125,7 @@ function App() { ...@@ -125,7 +125,7 @@ function App() {
125 userModifiedInput = ""; 125 userModifiedInput = "";
126 } 126 }
127 if(data.usage) { 127 if(data.usage) {
128 btutil_setChatUsage('chatbot+', data.usage.prompt_tokens, data.usage.total_tokens); 128 window.btutil_setChatUsage('chatbot+', data.usage.prompt_tokens, data.usage.total_tokens);
129 } 129 }
130 chatLogTurboNew.push({ role: "user", content: userModifiedInput }); 130 chatLogTurboNew.push({ role: "user", content: userModifiedInput });
131 chatLogTurboNew.push({ role: "assistant", content: parsedData }); 131 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!