Commit 9a48c7a6 authored by Your Name's avatar Your Name

Update CHANGES.md with cost overview and model performance fixes

parent a32f2cce
......@@ -58,6 +58,19 @@
- All analytics sections now respect the selected time range
- **Files Modified**: `aisbf/analytics.py`, `main.py`
### 10. Cost Overview Hardcoded to 24 Hours
- **Problem**: Cost overview always showed last 24 hours regardless of selected time range
- **Solution**: Simplified logic to use tokens from provider stats which already respect date range
- **Files Modified**: `aisbf/analytics.py`
### 11. Model Performance Shows No Data
- **Problem**: `context_dimensions` table remained empty because `record_context_dimension` was never called
- **Solution**:
- Added fallback logic to query `token_usage` table when `context_dimensions` is empty
- Added context dimension recording in request success path
- Model performance now displays data even on fresh installations
- **Files Modified**: `aisbf/analytics.py`, `aisbf/handlers.py`
## New Features
### Enhanced Debug Logging
......@@ -81,6 +94,11 @@ Analytics page now supports:
Graph title and all analytics sections dynamically update based on selected range.
### Model Performance Tracking
- Automatically records context dimensions on each request
- Falls back to token_usage data when context_dimensions is empty
- Shows performance metrics for all providers with activity in selected time range
## Backwards Compatibility
All changes maintain 100% backwards compatibility:
......@@ -108,3 +126,4 @@ Updated version to `0.99.33` in:
8. Confirm model performance shows data for selected time range
9. Verify cost overview reflects selected time period
10. Check that recommendations are based on filtered time range data
11. Test model performance displays on fresh installations with empty context_dimensions table
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment