discourse-ai/app/serializers
Sam d07cf51653
FEATURE: llm quotas (#1047)
Adds a comprehensive quota management system for LLM models that allows:

- Setting per-group (applied per user in the group) token and usage limits with configurable durations
- Tracking and enforcing token/usage limits across user groups
- Quota reset periods (hourly, daily, weekly, or custom)
-  Admin UI for managing quotas with real-time updates

This system provides granular control over LLM API usage by allowing admins
to define limits on both total tokens and number of requests per group.
Supports multiple concurrent quotas per model and automatically handles
quota resets.


Co-authored-by: Keegan George <kgeorge13@gmail.com>
2025-01-14 15:54:09 +11:00
..
ai_api_audit_log_serializer.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
ai_chat_channel_serializer.rb DEV: Use explicit serializers for all models (#691) 2024-06-27 10:43:00 -03:00
ai_custom_tool_list_serializer.rb FEATURE: custom user defined tools (#677) 2024-06-27 17:27:40 +10:00
ai_custom_tool_serializer.rb FEATURE: RAG search within tools (#802) 2024-09-30 17:27:50 +10:00
ai_spam_serializer.rb DEV: Add structure for errors in spam (#1054) 2025-01-09 09:17:06 -08:00
ai_tool_serializer.rb DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
ai_topic_summary_serializer.rb FIX: Use correct date for cached summary (#733) 2024-07-31 15:21:26 -03:00
ai_usage_serializer.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
llm_model_serializer.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
llm_quota_serializer.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
localized_ai_persona_serializer.rb FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
reviewable_ai_chat_message_serializer.rb FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable_ai_post_serializer.rb DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00