Skip to content

Implement rate limit mechanism in ApiWebSearchTool #1508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

albertvillanova
Copy link
Member

Implement rate limit mechanism in ApiWebSearchTool.

Set default to 1 request/second: current limit of Brave Search API Free plan.

Copy link
Collaborator

@aymeric-roucher aymeric-roucher left a comment

Choose a reason for hiding this comment

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

Super cool, thanks! Btw, maybe we'd a rate limit on Model classes as well.

@albertvillanova albertvillanova merged commit 668aa49 into huggingface:main Jul 2, 2025
3 checks passed
@albertvillanova albertvillanova deleted the api-web-search-rate-limit branch July 2, 2025 12:51
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.

2 participants