discourse-ai/lib/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
..
personas FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
tools DEV: improve artifact presentation (#932) 2024-11-20 18:53:19 +11:00
bot.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
entry_point.rb FIX: Correctly register 'info' icon (#950) 2024-11-25 10:20:17 -03:00
playground.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
post_streamer.rb FIX: cancel functionality regressed (#938) 2024-11-21 17:51:45 +11:00
question_consolidator.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
response_http_streamer.rb FEATURE: support custom instructions for persona streaming (#890) 2024-11-05 07:43:26 +11:00
site_settings_extension.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
tool_runner.rb FIX: encode parameters returned from LLMs correctly (#889) 2024-11-04 10:07:17 +11:00