# ¿Limitar la cantidad de tokens de IA que un usuario puede usar en un día?

**URL:** https://meta.discourse.org/t/limit-the-number-of-ai-tokens-a-user-can-use-in-a-day/330500
**Category:** Feature
**Tags:** completed, ai
**Created:** [11 Octubre, 2024 20:59 UTC](https://meta.discourse.org/t/limit-the-number-of-ai-tokens-a-user-can-use-in-a-day/330500 "2024-10-11T20:59:12Z")
**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 Enero, 2025 02:50 UTC](https://meta.discourse.org/t/limit-the-number-of-ai-tokens-a-user-can-use-in-a-day/330500/5 "2025-01-13T02:50:24Z")

</div>

> [@markschmucker](#):
>
> Necesito límites de tasa por usuario (no por grupo) ahora

Técnicamente son lo mismo, solo creas un grupo de 1.

Esto debería implementarse esta semana y solucionarlo:

> <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/limit-the-number-of-ai-tokens-a-user-can-use-in-a-day/330500)._
