You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Usage ignores most fields returned by /v2/usage #86
The /v2/usage response now contains more usage types than Usage exposes.
Only character_*, document_* and team_document_* are parsed; everything else is silently dropped.
Note: this payload is only returned on Pro accounts — a Free key returns the short form, which is why the extra fields went unnoticed.
Consequences: no way to check the API-key quota or the speech quotas, and anyLimitReached() returns false while one of them is exhausted.
Proposal: add the matching UsageDetail fields (buildUsageDetail() already handles any <prefix>_count / <prefix>_limit pair),
include them in anyLimitReached() and __toString(), and expose products, startTime, endTime.
All new fields nullable → no BC break, Free accounts keep null.
Activity
deepl-oss-project-bot commentedon Sep 30, 2026
Thanks for reporting this and for providing the response example. We will work on including these fields in all the SDKs.