Skip to content

feat(R4): make LLM rate limit configurable via LLM_MAX_CALLS_PER_MIN#88

Open
siva23367 wants to merge 1 commit into
VarunGitGood:mainfrom
siva23367:feature/configurable-rate-limit
Open

feat(R4): make LLM rate limit configurable via LLM_MAX_CALLS_PER_MIN#88
siva23367 wants to merge 1 commit into
VarunGitGood:mainfrom
siva23367:feature/configurable-rate-limit

Conversation

@siva23367

Copy link
Copy Markdown

Summary

Replaces the hardcoded >= 3 LLM-calls-per-minute cap in _wait_for_rate_limit with a configurable LLM_MAX_CALLS_PER_MIN setting.

Changes

  • repi/core/config.py — Added LLM_MAX_CALLS_PER_MIN field (default 60, ge=1)
  • repi/investigation/react_loop.py__init__ reads from settings, _wait_for_rate_limit uses configurable value
  • repi/api/config.py — Improved error handling (400 vs 500 separation)
  • README.md — Added rate limiting documentation with provider recommendations

Testing

All 254 tests pass.

Closes #13

- Add LLM_MAX_CALLS_PER_MIN field to Settings (default 60, ge=1)
- Replace hardcoded >= 3 check in _wait_for_rate_limit with configurable value
- Read setting from settings singleton in ReactInvestigationLoop.__init__
- Document recommended values per provider in README
- Improve PUT /config error handling (400 vs 500 separation)

Closes VarunGitGood#13
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@siva23367 is attempting to deploy a commit to the varun7singh's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R4: Make LLM rate limit configurable

1 participant