discourse-ai/assets/javascripts/initializers
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-plugin-configuration-nav.js FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
ai-artifacts.gjs FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
ai-bot-replies.js DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
ai-chat-summarization.js FEATURE: move summary to use llm_model (#699) 2024-07-04 10:48:18 +10:00
ai-helper.js UX: Improve toast message location (#800) 2024-09-14 09:19:13 +10:00
ai-image-caption.js DEV: Update linting (#933) 2024-11-20 15:43:28 +01:00
ai-semantic-search.js FIX: results not being reset when appending to query param (#912) 2024-11-13 07:19:34 -08:00
related-topics.gjs FIX: Keep related topics data cached when a user scrolls up (#976) 2024-11-28 14:25:15 -03:00