discourse-ai/spec/lib/modules/ai_bot
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
..
jobs/regular FEATURE: more accurate and faster titles (#791) 2024-09-03 15:52:20 +10:00
personas DEV: skip flakey spec (#955) 2024-11-26 07:49:33 +11:00
tools DEV: improve artifact presentation (#932) 2024-11-20 18:53:19 +11:00
bot_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
entry_point_spec.rb FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
playground_spec.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
question_consolidator_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
site_setting_extension_spec.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00