discourse-ai/admin/assets/javascripts/discourse/templates/admin-plugins/show
Sam bc0657f478
FEATURE: AI Usage page (#964)
- Added a new admin interface to track AI usage metrics, including tokens, features, and models.
- Introduced a new route `/admin/plugins/discourse-ai/ai-usage` and supporting API endpoint in `AiUsageController`.
- Implemented `AiUsageSerializer` for structuring AI usage data.
- Integrated CSS stylings for charts and tables under `stylesheets/modules/llms/common/usage.scss`.
- Enhanced backend with `AiApiAuditLog` model changes: added `cached_tokens` column  (implemented with OpenAI for now) with relevant DB migration and indexing.
- Created `Report` module for efficient aggregation and filtering of AI usage metrics.
- Updated AI Bot title generation logic to log correctly to user vs bot
- Extended test coverage for the new tracking features, ensuring data consistency and access controls.
2024-11-29 06:26:48 +11:00
..
discourse-ai-llms UX: move templates to main LLM config tab, restyle (#813) 2024-09-30 17:15:11 +10:00
discourse-ai-personas FIX: Remove doubled up breadcrumb in persona UI (#650) 2024-05-29 11:37:01 +10:00
discourse-ai-tools UX: Applying more admin UI guidelines (#956) 2024-11-27 13:34:56 +10:00
discourse-ai-usage.hbs FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00