• Your Name's avatar
    feat: Implement Token Usage Analytics (Point 7) · 2176c233
    Your Name authored
    - Add aisbf/analytics.py module with Analytics class for tracking token usage,
      request counts, latency, error rates, and cost estimation per provider
    - Add templates/dashboard/analytics.html with comprehensive dashboard page
    - Integrate analytics recording into RequestHandler, RotationHandler, and
      AutoselectHandler
    - Add /dashboard/analytics route in main.py
    - Add Analytics link to base.html navigation
    - Update CHANGELOG.md with new feature documentation
    
    Features:
    - Token usage tracking with database persistence
    - Real-time request counts and latency tracking
    - Error rates and types tracking
    - Cost estimation per provider (Anthropic, OpenAI, Google, Kiro, OpenRouter)
    - Model performance comparison
    - Token usage over time visualization (1h, 6h, 24h, 7d)
    - Optimization recommendations
    - Export functionality (JSON, CSV)
    - Integration with all request handlers
    - Support for rotation_id and autoselect_id tracking
    2176c233
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
templates Loading commit data...
.gitignore Loading commit data...
.providers.json.swp Loading commit data...
AI.PROMPT Loading commit data...
API_EXAMPLES.md Loading commit data...
CHANGELOG.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
PYPI.md Loading commit data...
README.md Loading commit data...
TODO.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
main.py Loading commit data...
pyproject.toml Loading commit data...
requirements.txt Loading commit data...
screenshot.png Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...
test_google.sh Loading commit data...
test_proxy.sh Loading commit data...
test_response_cache.py Loading commit data...