Skip to content

Enhance ChatMessage with timing metrics for message processing #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mjnong
Copy link

@mjnong mjnong commented Feb 24, 2025

  • Added msToFirstToken and msToLastToken fields to track timing metrics.
  • Updated constructors to initialise timing fields and set isFirstTokenTimeSet flag.
  • Implemented logic to calculate and display time until first token, characters per second, and total time for message processing.
  • Improved performance monitoring and analysis capabilities for message handling.

    - Added msToFirstToken and msToLastToken fields to track timing metrics.
    - Updated constructors to initialize timing fields and set isFirstTokenTimeSet flag.
    - Implemented logic to calculate and display time until first token, characters per second, and total time for message processing.
    - Improved performance monitoring and analysis capabilities for message handling.

Signed-off-by: Marcus Nagy Ong <marcusnagy@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant