Merge branch '28594_usage_tracking' into 'master'
28594_usage_tracking See merge request !77
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 }); | ... | ... |
-
Please register or sign in to post a comment