discourse-ai/assets/javascripts/discourse/components
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
..
modal FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
post-menu DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
suggestion-menus UX: improve layout of inline title editing buttons (#1000) 2024-12-04 17:04:26 -05:00
admin-report-emotion.hbs FEATURE: Add links to filtered emotion view on emotion dashboard table (#953) 2024-11-25 15:51:01 -03:00
admin-report-emotion.js FEATURE: Add links to filtered emotion view on emotion dashboard table (#953) 2024-11-25 15:51:01 -03:00
ai-artifact.gjs FEATURE: first class support for OpenRouter (#1011) 2024-12-10 05:59:19 +11:00
ai-bot-header-icon.gjs DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
ai-composer-helper-menu.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-forced-tool-strategy-selector.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-full-page-search.gjs DEV: Add no-results className to full page search toggle (#1055) 2025-01-10 10:59:18 -06:00
ai-gist-toggle.gjs UX: update gist toggle styles (#926) 2024-11-19 15:33:34 -05:00
ai-helper-custom-prompt.gjs DEV: Move composer AI helper to toolbar (#796) 2024-09-13 11:59:30 -07:00
ai-helper-loading.gjs DEV: Update more deprecated Font Awesome icon names (#1005) 2024-12-06 07:45:05 +11:00
ai-helper-options-list.gjs FIX: Keyboard shortcut should be platform specific (#801) 2024-09-14 09:18:07 +10:00
ai-indicator-wave.gjs DEV: Make indicator wave a reusable component (#807) 2024-09-18 09:53:54 -07:00
ai-llm-editor-form.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-llm-editor.gjs UX: move templates to main LLM config tab, restyle (#813) 2024-09-30 17:15:11 +10:00
ai-llm-quota-editor.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-llm-selector.js FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-llms-list-editor.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-persona-editor.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-persona-list-editor.gjs DEV: Change to use DPageSubheader (#1033) 2024-12-18 17:39:31 +10:00
ai-persona-tool-option-editor.gjs FEATURE: optional tool detail blocks (#662) 2024-06-11 18:14:14 +10:00
ai-persona-tool-options.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-post-helper-menu.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-quota-duration-selector.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-spam.gjs DEV: Add structure for errors in spam (#1054) 2025-01-09 09:17:06 -08:00
ai-split-topic-suggester.gjs REFACTOR: Helper suggestions (#914) 2024-11-27 12:21:03 -08:00
ai-summary-skeleton.gjs DEV: Make indicator wave a reusable component (#807) 2024-09-18 09:53:54 -07:00
ai-tool-editor.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-tool-list-editor.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-tool-parameter-editor.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
ai-tool-selector.js DEV: Convert to native class syntax (#981) 2024-11-29 16:41:09 +01:00
ai-topic-gist.gjs FIX: typo in topic gist for escapedExcerpt (#1003) 2024-12-05 08:03:08 -05:00
ai-usage.gjs DEV: Change to use DPageSubheader (#1033) 2024-12-18 17:39:31 +10:00
model-accuracies.hbs FEATURE: Composer AI helper (#8) 2023-03-15 17:02:20 -03:00
rag-options.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
rag-upload-progress.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
rag-uploader.gjs FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
reviewable-ai-chat-message.hbs FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable-ai-chat-message.js FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable-ai-post.hbs DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00
thumbnail-suggestion-item.gjs DEV: Update linting (#423) 2024-01-13 00:28:06 +01:00