Implement rate limit mechanism in ApiWebSearchTool by albertvillanova · Pull Request #1508 · huggingface/smolagents (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

View all resources

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

Sign in

Sign up

Appearance settings

huggingface / smolagents Public

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

@albertvillanova

Copy link Copy Markdown

Member

@albertvillanova albertvillanova commented

Jul 1, 2025

Implement rate limit mechanism in ApiWebSearchTool.

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

@albertvillanova

[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 albertvillanova mentioned this pull request

Jul 2, 2025

Add robust error handling for duckduckgo_search.RatelimitException-HTTP-202#1501

Closed

aymeric-roucher

aymeric-roucher approved these changes Jul 2, 2025

View reviewed changes

Copy link Copy Markdown

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 reacted with thumbs up emoji

@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

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 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.

2 participants

@albertvillanova @aymeric-roucher