Commit 07e4750
committed
feat: add rateLimited and retryAfterMs to ProviderUsageData
New optional fields on ProviderUsageData allow providers to signal
rate-limit responses (e.g. HTTP 429) with a recommended backoff period.
The host app can use these to implement backoff scheduling and cache
stale data instead of showing errors during rate-limit windows.
Supports tokentopapp/tokentop#581 parent d97d0e3 commit 07e4750
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
0 commit comments