# Argomentando a favore di una funzione di limite massimo sull'uso dei gruppi utente AI per bot AI e AI Helper

**URL:** <https://meta.discourse.org/t/making-the-case-for-a-hard-cap-feature-on-user-group-ai-usage-for-ai-bots-and-ai-helper/318085>\
**Category:** Feature\
**Tags:** chat, completed, ai, ai-bot\
**Created:** [24 Luglio 2024, 10:43am UTC](https://meta.discourse.org/t/making-the-case-for-a-hard-cap-feature-on-user-group-ai-usage-for-ai-bots-and-ai-helper/318085 "2024-07-24T10:43:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [13 Gennaio 2025, 2:50am UTC](https://meta.discourse.org/t/making-the-case-for-a-hard-cap-feature-on-user-group-ai-usage-for-ai-bots-and-ai-helper/318085/5 "2025-01-13T02:50:56Z")

</div>

Questo dovrebbe essere pubblicato questa settimana:

> <https://github.com/discourse/discourse-ai/pull/1047>
>
> Adds a comprehensive quota management system for LLM models that allows:
> 
> \- Se…tting per-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
> \- Full test coverage for quota models and controllers
> 
> 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.
> 
> 
> !\[image\](https://github.com/user-attachments/assets/76375c76-889d-438b-b464-e65c7f7a41ed)
> 
> 
> !\[image\](https://github.com/user-attachments/assets/21752366-2b33-4fb7-8b3f-faee74c45413)
> 
> 
> !\[image\](https://github.com/user-attachments/assets/c7248930-0aa7-434e-805e-56adb7cbfb2f)

---

_[View the full topic](https://meta.discourse.org/t/making-the-case-for-a-hard-cap-feature-on-user-group-ai-usage-for-ai-bots-and-ai-helper/318085)._
