feat: add monthly rate limiting for Legalize API

↗ view on GitHub · David Wozniak · 2026-05-27 · 32e8f52b

- Track API calls per calendar month (resets on 1st)
- Default limit 4500/mo (safety buffer under 5k free tier)
- Configurable via LEGALIZE_MONTHLY_LIMIT env var
- Graceful degradation: AI still works without law citations when limit hit
Repository wozhub/inquilino
Author David Wozniak <2332920+wozhub@users.noreply.github.com>
Authored
Parents 6dddefeb
Stats 1 file changed , +31 , -3
Part of Legalize API integration for Argentine law context

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-32e8f52b.md from inside the repo you want the change in.

⬇ Download capture-commit-32e8f52b.md