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-08-13 11:27:57 +07:00
2026-08-05 10:52:03 +07:00
2026-08-27 17:56:26 +07:00
2026-07-29 18:09:35 +07:00
2026-06-14 19:31:09 +07:00
2026-08-28 15:35:23 +07:00
2026-08-14 16:27:10 +07:00
2026-08-05 11:43:40 +07:00
2026-07-29 18:09:43 +07:00
2026-09-02 20:04:35 +07:00
2026-07-29 21:05:23 +07:00
2026-06-26 11:42:05 +07:00
2026-06-14 19:31:09 +07:00
2026-08-28 15:35:23 +07:00
2026-06-14 19:31:09 +07:00
2026-08-28 16:16:01 +07:00