Skip to content

v0.2.1

Choose a tag to compare

@tekkidev tekkidev released this 01 Feb 22:27
· 7 commits to main since this release

Added

  • Token Tracking: New feature to track response sizes and estimate token usage
    • response_chars parameter in record() for automatic token estimation
    • input_tokens and output_tokens parameters for actual token tracking
    • New report_tokens() method for deferred token reporting
    • Token summary in get_stats() response with totals and averages
  • Schema Migration: Automatic database migration from v1 to v2
    • Adds token tracking columns with backward compatibility
    • Preserves all existing data
  • Documentation: Added new and updated guides, API references, and examples

Changed

  • Database schema bumped to v2 with new columns:
    • total_input_tokens, total_output_tokens
    • total_response_chars, estimated_tokens
  • get_stats() response now includes token_summary object
  • Each stat item now includes token fields and avg_tokens_per_call