Skip to content

Track TPD and RPM for all providers, not just Groq - #38

Merged
sadacca merged 1 commit into
mainfrom
claude/groq-rate-limits-llama3-syv0w3
Jun 25, 2026
Merged

Track TPD and RPM for all providers, not just Groq#38
sadacca merged 1 commit into
mainfrom
claude/groq-rate-limits-llama3-syv0w3

Conversation

@sadacca

@sadacca sadacca commented Jun 25, 2026

Copy link
Copy Markdown
Owner

MODEL_LIMITS flattens MODEL_REGISTRY into a single per-model RPM/RPD/TPM/TPD lookup, replacing the Groq-only MODEL_TPD_LIMITS dict. Cerebras and Mistral cap usage at the account level, so their models now share a scope_key and pool daily call/token usage correctly instead of tracking each model id independently. Added a sliding 60s RPM window (_wait_for_rpm) to catch account-wide RPM bursts that static per-call pacing alone would miss.

MODEL_LIMITS flattens MODEL_REGISTRY into a single per-model RPM/RPD/TPM/TPD
lookup, replacing the Groq-only MODEL_TPD_LIMITS dict. Cerebras and Mistral
cap usage at the account level, so their models now share a scope_key and
pool daily call/token usage correctly instead of tracking each model id
independently. Added a sliding 60s RPM window (_wait_for_rpm) to catch
account-wide RPM bursts that static per-call pacing alone would miss.
@sadacca
sadacca merged commit 3cffbaf into main Jun 25, 2026
1 check passed
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.

2 participants