discourse-ai/app/models
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.rb FEATURE: first class support for OpenRouter (#1011) 2024-12-10 05:59:19 +11:00
ai_artifact.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai_artifact_version.rb FEATURE: allow artifacts to be updated (#980) 2024-12-03 07:23:31 +11:00
ai_moderation_setting.rb FEATURE: Add AI-powered spam detection for new user posts (#1004) 2024-12-12 09:17:25 +11:00
ai_persona.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
ai_spam_log.rb FEATURE: Add AI-powered spam detection for new user posts (#1004) 2024-12-12 09:17:25 +11: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 FIX: regression, no longer sending examples to AI helper (#993) 2024-12-03 16:03:46 +11:00
llm_model.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
llm_quota.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
llm_quota_usage.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54: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 REFACTOR: A Simpler way of interacting with embeddings tables. (#1023) 2024-12-13 10:15:21 -03:00
reviewable_ai_chat_message.rb DEV: Update more deprecated Font Awesome icon names (#1005) 2024-12-06 07:45:05 +11:00
reviewable_ai_post.rb DEV: Update more deprecated Font Awesome icon names (#1005) 2024-12-06 07:45:05 +11:00
shared_ai_conversation.rb FIX: close link in shared conversation model (#1007) 2024-12-05 15:19:36 -05:00