Implement rate limit mechanism in ApiWebSearchTool by albertvillanova · Pull Request #1508 · huggingface/smolagents (original) (raw)
Navigation Menu
Appearance settings
- AI CODE CREATION
* GitHub CopilotWrite better code with AI
* GitHub SparkBuild and deploy intelligent apps
* GitHub ModelsManage and compare prompts
* MCP RegistryNewIntegrate external tools - DEVELOPER WORKFLOWS
* ActionsAutomate any workflow
* CodespacesInstant dev environments
* IssuesPlan and track work
* Code ReviewManage code changes - APPLICATION SECURITY
* GitHub Advanced SecurityFind and fix vulnerabilities
* Code securitySecure your code as you build
* Secret protectionStop leaks before they start - EXPLORE
* Why GitHub
* Documentation
* Blog
* Changelog
* Marketplace
- AI CODE CREATION
- BY COMPANY SIZE
* Enterprises
* Small and medium teams
* Startups
* Nonprofits - BY USE CASE
* App Modernization
* DevSecOps
* DevOps
* CI/CD
* View all use cases - BY INDUSTRY
* Healthcare
* Financial services
* Manufacturing
* Government
* View all industries
- BY COMPANY SIZE
- EXPLORE BY TOPIC
* AI
* Software Development
* DevOps
* Security
* View all topics - EXPLORE BY TYPE
* Customer stories
* Events & webinars
* Ebooks & reports
* Business insights
* GitHub Skills - SUPPORT & SERVICES
* Documentation
* Customer support
* Community forum
* Trust center
* Partners
- EXPLORE BY TOPIC
- COMMUNITY
* GitHub SponsorsFund open source developers - PROGRAMS
* Security Lab
* Maintainer Community
* Accelerator
* GitHub Stars
* Archive Program - REPOSITORIES
* Topics
* Trending
* Collections
- COMMUNITY
- Pricing
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
huggingface / smolagents Public
Notifications You must be signed in to change notification settings
Additional navigation options
Merged
albertvillanova merged 1 commit intohuggingface:mainfrom
albertvillanova:api-web-search-rate-limit
Jul 2, 2025
ConversationCommits (1)ChecksFiles changed
Merged
Implement rate limit mechanism in ApiWebSearchTool#1508
albertvillanova merged 1 commit intohuggingface:mainfrom
albertvillanova:api-web-search-rate-limit
Conversation
Copy link Copy Markdown
Member
albertvillanova commented
Implement rate limit mechanism in ApiWebSearchTool.
Set default to 1 request/second: current limit of Brave Search API Free plan.
[Implement rate limit mechanism in ApiWebSearchTool](/huggingface/smolagents/pull/1508/commits/c13e53f5db7d686c2ee9a9767d27ff200a7d449c "Implement rate limit mechanism in ApiWebSearchTool")
[c13e53f](/huggingface/smolagents/pull/1508/commits/c13e53f5db7d686c2ee9a9767d27ff200a7d449c)
albertvillanova mentioned this pull request
Add robust error handling for duckduckgo_search.RatelimitException-HTTP-202#1501
Closed
aymeric-roucher approved these changes Jul 2, 2025
Copy link Copy Markdown
Collaborator
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 reacted with thumbs up emoji
albertvillanova merged commit 668aa49 into huggingface:main
3 checks passed
albertvillanova deleted the api-web-search-rate-limit branch
This was referenced
Jul 3, 2025
Implement rate limit mechanism in DuckDuckGoSearchTool#1515
Merged
Implement rate limiting in all API models#1516
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Sign up for free to join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
aymeric-roucher aymeric-roucher approved these changes
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.