Hi there!
I provide headers with 4 requests (first 3 requests, and 1 last request)
Where I found one more new field: x-ratelimit-reset-tokens_usage_based
And where reset-tokens
have a strange behavior
Request 1: (2023-12-03 19:19:12)
"x-ratelimit-limit-tokens": "1500000",
"x-ratelimit-limit-tokens_usage_based": "1500000",
"x-ratelimit-remaining-requests": "499",
"x-ratelimit-remaining-tokens": "1495621",
"x-ratelimit-remaining-tokens_usage_based": "1495621",
"x-ratelimit-reset-requests": "120ms",
"x-ratelimit-reset-tokens": "4m12.172s",
"x-ratelimit-reset-tokens_usage_based": "4m12.172s",
Request 2: (2023-12-03 19:19:14)
"x-ratelimit-limit-requests": "500",
"x-ratelimit-limit-tokens": "1500000",
"x-ratelimit-limit-tokens_usage_based": "1500000",
"x-ratelimit-remaining-requests": "499",
"x-ratelimit-remaining-tokens": "1482750",
"x-ratelimit-remaining-tokens_usage_based": "1490773",
"x-ratelimit-reset-requests": "120ms",
"x-ratelimit-reset-tokens": "16m33.562s",
"x-ratelimit-reset-tokens_usage_based": "8m51.438s",
Request 3: (2023-12-03 19:19:17)
"x-ratelimit-limit-tokens_usage_based": "1500000",
"x-ratelimit-remaining-requests": "498",
"x-ratelimit-remaining-tokens": "1478342",
"x-ratelimit-remaining-tokens_usage_based": "1486365",
"x-ratelimit-reset-requests": "176ms",
"x-ratelimit-reset-tokens": "20m47.458s",
"x-ratelimit-reset-tokens_usage_based": "13m5.333s",
And
Request 4 (2023-12-03 19:41:59)
"x-ratelimit-limit-tokens": "1500000",
"x-ratelimit-limit-tokens_usage_based": "1500000",
"x-ratelimit-remaining-requests": "496",
"x-ratelimit-remaining-tokens": "43244",
"x-ratelimit-remaining-tokens_usage_based": "1212010",
"x-ratelimit-reset-requests": "464ms",
"x-ratelimit-reset-tokens": "23h18m29.144s",
"x-ratelimit-reset-tokens_usage_based": "4h36m28.223s",
My account is tier 2.
gpt-4-1106-preview
5,000 RPM, 300,000 TPM, 1,500,000 TPD
Seems like a bug, or I canât find a pattern in which the rate limit reset increases.
And what is x-ratelimit-remaining-tokens_usage_based
(no any information in https://platform.openai.com/docs/guides/rate-limits/rate-limits-in-headers)