ai.internal._retry_after_ms
(internal) How long the provider asked us to wait, in milliseconds, from the response headers of a 429. `retry-after-ms` (OpenAI/Anthropic rate-limit headers) wins over `Retry-After` delta-seconds (RFC 9110); an HTTP-date `Retry-After` and a missing header both yield null, which is the caller's cue to use its own backoff.
Reference version
Signature
function ai.internal._retry_after_ms(headers: map<string, string> | null) -> int | null
(internal) How long the provider asked us to wait, in milliseconds, from the response
headers of a 429. retry-after-ms (OpenAI/Anthropic rate-limit headers) wins
over Retry-After delta-seconds (RFC 9110); an HTTP-date Retry-After and a
missing header both yield null, which is the caller's cue to use its own
backoff.
Source:<builtin>/ai/ns_internal/http_errors.bamlbytes 1432–1793