-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Add token metrics to LLM Chat UI > [!NOTE] > Many LLM models send token info as a NaN; So calculate usages on a front part. Adds real-time performance metrics to the chat interface including: - Token generation speed (tokens/second) - Total tokens generated The metrics are displayed in a tag at the bottom of the chat window, providing users visibility into the chat performance. ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/bbfdb740-c30f-4889-9414-520dab1847e8.png) **Checklist:** - [ ] Documentation - [ ] Test case: Verify metrics update correctly when: - Messages are generated - Files are uploaded - Chat session continues over time
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters