discourse-ai/app/models
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.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
ai_artifact.rb UX: improve artifact styling add direct share link (#930) 2024-11-20 13:13:03 +11:00
ai_persona.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
ai_summary.rb FIX: Multiple concurrent summaries could result in pg index errors (#973) 2024-11-28 11:53:04 -03:00
ai_tool.rb FIX: encode parameters returned from LLMs correctly (#889) 2024-11-04 10:07:17 +11:00
chat_message_custom_prompt.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
classification_result.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
completion_prompt.rb FEATURE: Add locale detection prompt from translator (#946) 2024-11-25 08:33:54 +11:00
llm_model.rb FEATURE: Add support for Mistral models (#919) 2024-11-19 17:28:09 +11:00
model_accuracy.rb DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
post_custom_prompt.rb FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
rag_document_fragment.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
reviewable_ai_chat_message.rb FIX: Fix ordering of random post embeddings backfill (#965) 2024-11-27 17:01:54 -03:00
reviewable_ai_post.rb FIX: Fix ordering of random post embeddings backfill (#965) 2024-11-27 17:01:54 -03:00
shared_ai_conversation.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00