
NurfogandQwen-Coder
6ef2860b26
feat: Enforce Automatic Token Limits in AI Handlers
CMS Service:
- generate_quiz: Check 2000 tokens limit
- generate_course: Check 5000 tokens limit
- generate_hotspots: Check 2000 tokens limit
- generate_role_play: Check 2500 tokens limit
- summarize_lesson: Check 1500 tokens limit
LMS Service:
- chat_with_tutor: Check 1000 tokens limit
- evaluate_audio_response: Check 1500 tokens limit
Behavior:
- Returns HTTP 429 Too Many Requests when limit exceeded
- Error message indicates monthly limit exceeded
- Users must contact admin for limit increase
- Works with automatic alert system (Phase 3)
Total Functions Protected: 7
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-23 17:18:04 -03:00
..
2026-02-24 09:37:16 -03:00
2026-03-23 12:24:22 -03:00
2026-03-23 17:18:04 -03:00
2025-12-29 18:00:34 -03:00
2026-02-23 15:43:45 -03:00
2026-03-12 17:09:05 -03:00
2026-02-24 12:43:58 -03:00
2026-02-23 15:43:45 -03:00