28594_usage_tracking
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -129,7 +129,7 @@ app.post('/api', async (req, res) => { | ... | @@ -129,7 +129,7 @@ app.post('/api', async (req, res) => { |
| 129 | usage.total_tokens = usage.prompt_tokens + usage.completion_tokens; | 129 | usage.total_tokens = usage.prompt_tokens + usage.completion_tokens; |
| 130 | 130 | ||
| 131 | // TOKEN USAGE | 131 | // TOKEN USAGE |
| 132 | btutil_setChatUsage('chatgpt', usage.prompt_tokens, usage.total_tokens); | 132 | btutil_setChatUsage('chatbot+', usage.prompt_tokens, usage.total_tokens); |
| 133 | } catch (e) { | 133 | } catch (e) { |
| 134 | console.log('Error encoding prompt text', e); | 134 | console.log('Error encoding prompt text', e); |
| 135 | } | 135 | } | ... | ... |
-
Please register or sign in to post a comment