discourse-ai/app/serializers
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
..
ai_api_audit_log_serializer.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
ai_chat_channel_serializer.rb DEV: Use explicit serializers for all models (#691) 2024-06-27 10:43:00 -03:00
ai_custom_tool_list_serializer.rb FEATURE: custom user defined tools (#677) 2024-06-27 17:27:40 +10:00
ai_custom_tool_serializer.rb FEATURE: RAG search within tools (#802) 2024-09-30 17:27:50 +10:00
ai_tool_serializer.rb DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
ai_topic_summary_serializer.rb FIX: Use correct date for cached summary (#733) 2024-07-31 15:21:26 -03:00
ai_usage_serializer.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
llm_model_serializer.rb FEATURE: improve visibility of AI usage in LLM page (#845) 2024-10-22 11:16:02 +11:00
localized_ai_persona_serializer.rb FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
reviewable_ai_chat_message_serializer.rb FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable_ai_post_serializer.rb DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00