Skip to content

Document rate limits#1944

Merged
julien-c merged 14 commits into
mainfrom
document-rate-limits
Sep 23, 2025
Merged

Document rate limits#1944
julien-c merged 14 commits into
mainfrom
document-rate-limits

Conversation

@julien-c

@julien-c julien-c commented Sep 22, 2025

Copy link
Copy Markdown
Member

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment thread docs/hub/rate-limits.md Outdated
Comment on lines +46 to +47
| **RateLimit-Remaining** | How many requests of this type you have left in the current window. |
| **RateLimit-Reset** | Number of seconds until the rate limit window resets (or until quota is refreshed). Uses a “delta-seconds” format to reduce clock sync issues. |

@coyotte508 coyotte508 Sep 22, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those two headers are removed in upcoming PR - the RateLimit-Limit header now contains "api|pages|resolvers";r=[remaining];t=[seconds remaining until reset] and the RateLimit-Policy header now contains "fixed window";"api|pages|resolvers";q=[total allowed for window];w=[window duration in seconds]

as per https://www.ietf.org/archive/id/draft-ietf-httpapi-ratelimit-headers-09.html

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

care to update directly on this branch?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did it: fac03f2

maybe @Wauplin will update this anyways when he implements the client-side in Python and JS 😂

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/api.md
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/rate-limits.md

@pcuenca pcuenca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/webhooks.md
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md Outdated
julien-c and others added 2 commits September 22, 2025 18:40
Co-authored-by: vb <vaibhavs10@gmail.com>
Co-authored-by: Lucain <lucain@huggingface.co>
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
Comment thread docs/hub/rate-limits.md Outdated
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/rate-limits.md
Comment thread docs/hub/rate-limits.md Outdated
julien-c and others added 3 commits September 23, 2025 12:52
Co-authored-by: Simon Brandeis <33657802+SBrandeis@users.noreply.github.com>
@julien-c

Copy link
Copy Markdown
Member Author

Ok I'll merge this first version. Thanks everyone for the awesome help!!!! Love you!!

@julien-c
julien-c merged commit 3dfa199 into main Sep 23, 2025
1 of 2 checks passed
@julien-c
julien-c deleted the document-rate-limits branch September 23, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants