discourse-ai/lib
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_bot FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
ai_helper DEV: Better control what prompts can appear in post/composer (#969) 2024-11-27 16:14:21 -08:00
automation FEATURE: LLM mentions and auto silence (#949) 2024-11-26 07:19:56 +11:00
completions FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
configuration FEATURE: improve visibility of AI usage in LLM page (#845) 2024-10-22 11:16:02 +11:00
database DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
discord/bot FEATURE: Discord Bot integration (#831) 2024-10-16 12:41:18 -03:00
embeddings FIX: Shutdown embeddings thread pool after processing (#961) 2024-11-26 18:12:03 -03:00
inference REFACTOR: Simplify sentiment classification (#977) 2024-11-28 15:38:23 -03:00
nsfw REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
sentiment REFACTOR: Simplify sentiment classification (#977) 2024-11-28 15:38:23 -03:00
summarization FIX: Multiple concurrent summaries could result in pg index errors (#973) 2024-11-28 11:53:04 -03:00
tasks/modules REFACTOR: Simplify sentiment classification (#977) 2024-11-28 15:38:23 -03:00
tokenizer FIX/REFACTOR: FoldContent revamp (#866) 2024-10-25 11:51:17 -03:00
toxicity REFACTOR: Tidy-up embedding endpoints config. (#937) 2024-11-25 13:12:43 -03:00
utils FEATURE: Add basic connection check to DNS SRV resources (#563) 2024-04-12 10:39:19 -03:00
automation.rb FEATURE: LLM mentions and auto silence (#949) 2024-11-26 07:19:56 +11:00
chat_message_classificator.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
classificator.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
engine.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
guardian_extensions.rb FEATURE: Calculate gists from non hot topics too (#958) 2024-11-26 13:44:12 -03:00
multisite_hash.rb FIX: properly cache user locale (#593) 2024-04-26 09:28:35 -03:00
post_classificator.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
summarization.rb FEATURE: Generate topic gists for the hot topics list. (#837) 2024-10-18 18:01:39 -03:00
topic_extensions.rb PERF: Preload only gists when including summaries in topic list (#948) 2024-11-25 12:24:02 -03:00