mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-20 22:02:19 +03:00
* fix(sse): classify "N API calls / month" 429 text as quota_exhausted QUOTA_PATTERNS recognized "monthly ... limit" and "per month ... limit", but not the reversed order providers actually use in trial-key messages — Cohere's is "You are using a Trial key, which is limited to 1000 API calls / month". That 429 fell through to the generic short-backoff rate_limit path, so a monthly allowance that will not reset for the rest of the billing cycle kept being retried every few seconds. Broaden the pattern set to catch both phrase orders and the "N calls / month" and "N requests/month" spellings. Observed in production against Cohere trial keys: 481 of 752 429s in 24h carried this text and were all treated as short transient rate limits. * docs(changelog): add fragment for #12252 --------- Co-authored-by: brick30llc-ctrl <admin@brick30.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
19 KiB
19 KiB