discourse-ai/spec
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
..
configuration FIX: Correctly display errors when parent module needs to be disabled first (#788) 2024-08-30 17:16:11 -03:00
db/migrate Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
fabricators FEATURE: Add support for Mistral models (#919) 2024-11-19 17:28:09 +11:00
fixtures FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
jobs FEATURE: Calculate gists from non hot topics too (#958) 2024-11-26 13:44:12 -03:00
lib FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
models DEV: Prefer ENV key for seeded models (#893) 2024-11-05 06:19:13 -08:00
requests FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
serializers DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
services/discourse_ai REFACTOR: Support of different summarization targets/prompts. (#835) 2024-10-15 13:53:26 -03:00
shared REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
support Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
system REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
tasks Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
plugin_helper.rb DEV: Fix mismatched column types (#868) 2024-10-28 15:36:42 +02:00
plugin_spec.rb FEATURE: Add locale detection prompt from translator (#946) 2024-11-25 08:33:54 +11:00