feat(R4): make LLM rate limit configurable via LLM_MAX_CALLS_PER_MIN#88
Open
siva23367 wants to merge 1 commit into
Open
feat(R4): make LLM rate limit configurable via LLM_MAX_CALLS_PER_MIN#88siva23367 wants to merge 1 commit into
siva23367 wants to merge 1 commit into
Conversation
- 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
|
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the hardcoded
>= 3LLM-calls-per-minute cap in_wait_for_rate_limitwith a configurableLLM_MAX_CALLS_PER_MINsetting.Changes
repi/core/config.py— AddedLLM_MAX_CALLS_PER_MINfield (default 60, ge=1)repi/investigation/react_loop.py—__init__reads from settings,_wait_for_rate_limituses configurable valuerepi/api/config.py— Improved error handling (400 vs 500 separation)README.md— Added rate limiting documentation with provider recommendationsTesting
All 254 tests pass.
Closes #13