- Merge request !990Added the DTO to capture rate limit and provided the default implementation for the open ai → (Open) created by harivansh
- Status changed to Needs work
23 days ago 1:46pm 9 January 2026
Some of the providers support returning limit information in the response of for example chat requests.
See for example:
https://platform.openai.com/docs/guides/rate-limits#rate-limits-in-headers
https://docs.claude.com/en/api/rate-limits#response-headers
For the OpenAI based clients, ince we inject a Guzzle client by default, we should be able to use a Middleware to collect the header data and use it.
We should also add this to our OpenAI default provider with a default open ai solution, and then add a method that providers can use to set this, depending on headers used.
We will start with none-streamed Chat.
Active
1.2
AI Core module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.