Skip to content

[QUESTION] openai response: x-ratelimit header values -1 and 0 #838

@hemnaathR

Description

@hemnaathR

How can we help?

Hello, im using this library with the System.ClientModel ClientRetryPolicy to retry openai calls that come back with HTTP 429 (Rate Limit Exceeded)

Its been working fine but since circa Thursday last week, the header values coming back from the openai calls are coming back with 0 and -1 values :(
[x-ratelimit-limit-tokens, -1], [x-ratelimit-remaining-tokens, -1], [x-ratelimit-reset-tokens, 0]

x-ratelimit-reset-tokens usually gives me an int in seconds that I wait for before retrying the call. I also noticed the retry-after header is missing. Any help would be appreciated. Thanks!

I'm using an Azure OpenAI resource, Responses API, GPT4.1

Metadata

Metadata

Assignees

Labels

area: externalThis issue is regarding an external experience, such as a companion service or client.questionCategory: The issue is seeking information about the library or its usage.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions