v1.16.0
huggingface/smolagentsv1.16.0May 16, 2025by albertvillanova
AI Summary
Adds Bing search, custom functions to LocalPythonExecutor, and a timeout mechanism. It also changes the default provider for InferenceClientModel from 'hf-inference' to 'auto'.
Key Highlights
- Added Bing search engine to WebSearchTool
- Added timeout mechanism for code execution
- Default provider for InferenceClientModel changed to 'auto'
- Support for custom functions and executor_kwargs in LocalPythonExecutor
Breaking Changes
- Default provider for InferenceClientModel is now 'auto'
New Features
- Bing search
- Timeout mechanism
- Auto provider
- Custom functions
Full Release Notes
## New features 🚀 * **Tools** * Add Bing search engine to WebSearchTool by @albertvillanova in https://github.com/huggingface/smolagents/pull/1313 * **Local Python executor improvements** * Support passing custom functions to local Python executor by @albertvillanova in https://github.com/huggingface/smolagents/pull/1302 * Support executor_kwargs in LocalPythonExecutor for initialization customization by @albertvillanova in https://github.com/huggingface/smolagents/pull/1314 * Add timeout mechanism for code execution by @albertvillanova in https://github.com/huggingface/smolagents/pull/1318 * **CLI improvements** * Enable local web agents via api_base and api_key by @zbloss in https://github.com/huggingface/smolagents/pull/1333 ## Important changes ⚠️ * **Default provider for InferenceClientModel is now "auto"** The default value of the `provider` argument in `InferenceClientModel` has changed from `"hf-inference"` to `"auto"`. With `"auto"`, the client will automatically select the first available provider for the model, following the user's configured priority at https://hf.co/settings/inference-providers * Pin minimum version of huggingface-hub to use InferenceClient auto provider by @julien-c in https://github.com/huggingface/smolagents/pull/1322 ## Bug Fixes 🐛 * **Streaming GradioUI fixes** * Fix thought yield in GradioUI for streaming and non-streaming by @albertvillanova in https://github.com/huggingface/smolagents/pull/1311 * Fix duplicate error message in GradioUI, test, and refactor by @albertvillanova in https://github.com/huggingface/smolagents/pull/1312 * Fix duplicate plan display in GradioUI when streaming by @albertvillanova in https://github.com/huggingface/smolagents/pull/1317 ## Documentation 📚 * Improve docs about Agentic RAG by @albertvillanova in https://github.com/huggingface/smolagents/pull/1319 * Update Readme video with streaming example by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/1306 ## Misc 🛠️ * Bump dev version: v1.16.0.dev0 by @albertvillanova in https://github.com/huggingface/smolagents/pull/1304 * Update minimum supported Gradio version to 5.14.0 to fix Sidebar-related AttributeError by @albertvillanova in https://github.com/huggingface/smolagents/pull/1309 * Fix deprecation of HfApiModel by @albertvillanova in https://github.com/huggingface/smolagents/pull/1315 * Fix CI DuckDuckGoSearchTool tests raising 202 Ratelimit by @albertvillanova in https://github.com/huggingface/smolagents/pull/1324 * Remove utils dir from Makefile check_dirs by @tobiasofsn in https://github.com/huggingface/smolagents/pull/1335 ## New Contributors * @tobiasofsn made their first contribution in https://github.com/huggingface/smolagents/pull/1335 * @zbloss made their first contribution in https://github.com/huggingface/smolagents/pull/1333 **Full Changelog**: https://github.com/huggingface/smolagents/compare/v1.15.0...v1.16.0