openhands
b9c92cb83c
feat(quota): add usage tracking for Groq
First slice of #3701: quota tracking for Groq via x-ratelimit-* response
headers on the models endpoint (no dedicated quota endpoint exists, and
reading usage costs zero tokens).
- usage/groq.js: parse request+token limit/remaining headers; Go-style
duration reset headers ("2m59.56s") resolve to future timestamps;
missing key/401/403 -> message, 2xx without headers -> soft
"not tracked yet" with quotas:{}
- registry/groq.js: transport.usage.url (reuses validateUrl) +
features {usage, usageApikey}
- services/usage.js: groq entry in USAGE_HANDLERS
- ProviderLimits/utils.js: parseQuotaData case (absolute used/total,
codex/kiro style)
- tests: groq-usage.test.js (registry flags, header parsing, soft
not-tracked path, missing key/401, parseQuotaData)
2026-09-02 20:04:35 +07:00
..
2026-07-17 12:12:20 +07:00
2026-08-27 18:54:44 +07:00
2026-08-05 16:09:42 +07:00
2026-06-26 10:22:20 +07:00
2026-08-05 16:22:06 +07:00
2026-08-28 16:53:14 +07:00
2026-05-16 11:39:39 +07:00
2026-08-13 17:56:34 +07:00
2026-09-01 10:45:51 +07:00
2026-05-26 11:35:39 +07:00
2026-07-10 16:10:42 +07:00
2026-03-03 09:53:30 +07:00
2026-05-04 11:35:32 +07:00
2026-08-28 16:34:33 +07:00
2026-04-22 10:12:55 +07:00
2026-09-02 20:04:35 +07:00
2026-01-05 09:58:59 +07:00