Skip to content
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

User token report #21

Open
paullizer opened this issue Jan 31, 2025 · 0 comments
Open

User token report #21

paullizer opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@paullizer
Copy link
Contributor

paullizer commented Jan 31, 2025

Overview

Enhance the user profile section by including an estimated token usage report. This feature will provide users with visibility into their token consumption, helping them monitor AI model usage and optimize their interactions.

Feature Scope

  1. Display Token Usage in User Profile

    • Show an estimated token count for each user in their profile section.
    • Provide breakdowns based on recent queries, total usage, and session-based consumption.
  2. Real-Time or Periodic Updates

    • Implement a real-time counter or periodic updates to reflect token usage.
    • Ensure efficient calculation to prevent performance overhead.
  3. Usage Insights & Limits (Optional)

    • Display warnings or recommendations if a user is nearing a token threshold.
    • Provide insights into high-usage queries to help users optimize their prompts.

Implementation Considerations

  • Integrate with AI model response metadata to extract token usage per request.
  • Store token estimates in Cosmos DB or another appropriate data store.
  • Ensure accuracy and scalability by optimizing token counting logic.

This feature will improve transparency in AI interactions, helping users track and manage their token consumption effectively.

@paullizer paullizer self-assigned this Feb 4, 2025
@paullizer paullizer added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant