discourse-ai/admin/assets/javascripts/discourse/routes
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
..
admin-plugins-show-discourse-ai-llms-new.js UX: move templates to main LLM config tab, restyle (#813) 2024-09-30 17:15:11 +10:00
admin-plugins-show-discourse-ai-llms-show.js FEATURE: LLM Triage support for systemless models. (#757) 2024-08-21 11:41:55 -03:00
admin-plugins-show-discourse-ai-llms.js FEATURE: Configurable LLMs. (#606) 2024-05-13 12:46:42 -03:00
admin-plugins-show-discourse-ai-personas-new.js FEATURE: improve visibility of AI usage in LLM page (#845) 2024-10-22 11:16:02 +11:00
admin-plugins-show-discourse-ai-personas-show.js DEV: Moving around admin persona config routes again (#586) 2024-05-02 12:42:30 +10:00
admin-plugins-show-discourse-ai-personas.js DEV: Moving around admin persona config routes again (#586) 2024-05-02 12:42:30 +10:00
admin-plugins-show-discourse-ai-tools-new.js DEV: Clean up after #677 (#694) 2024-06-28 08:59:51 +10:00
admin-plugins-show-discourse-ai-tools-show.js DEV: Clean up after #677 (#694) 2024-06-28 08:59:51 +10:00
admin-plugins-show-discourse-ai-tools.js DEV: Clean up after #677 (#694) 2024-06-28 08:59:51 +10:00
admin-plugins-show-discourse-ai-usage.js FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00