v1.2.0
huggingface/smolagentsv1.2.0Jan 10, 2025by aymeric-roucher
AI Summary
This release simplifies the Model class, adds support for OpenAI-compatible servers, integrates with Hugging Chat, and significantly reduces import time by removing the torch dependency.
Key Highlights
- OpenAIServerModel
- Hugging Chat integration
- Simplified Model class
- Reduced import time
New Features
- OpenAI server support
- Chat integration
- Performance optimization
Full Release Notes
## What's Changed
**Big features:**
* Add an OpenAIServerModel by @Zetaphor in https://github.com/huggingface/smolagents/pull/109
- This unlocks using any OpenAI-format-compatible server like TGI or vLLM.
* Enable `smolagent` tools in [Hugging Chat](https://huggingface.co/chat/)! 🚀 in https://github.com/huggingface/smolagents/pull/132
- Demo incoming!
* Vastly simplify Model class ✨ in https://github.com/huggingface/smolagents/pull/146
- Now `Model` subclasses have only one `__call__` method: if arg `tools_to_call_from` is passed, this method will return a tool call instead of just a string.
* Halve import time by removing torch dependency in https://github.com/huggingface/smolagents/pull/147
- Following up on https://github.com/huggingface/smolagents/issues/100 raised by @xianminx, removing dependency on `torch` allowed to halve the library loading time!
* Support OpenTelemetry in https://github.com/huggingface/smolagents/pull/136
- This is still cooking, more stuff needs to be done, but we'll have observability!
**Other important features**
* Include missing pip install library in RAG example by @DarwinAnim8or in https://github.com/huggingface/smolagents/pull/92
* Update rag.md with missing verb by @derekalia in https://github.com/huggingface/smolagents/pull/95
* Small tweaks to Gradio demo by @freddyaboulton in https://github.com/huggingface/smolagents/pull/93
* Fixing spelling and grammar for query by @omarirfa in https://github.com/huggingface/smolagents/pull/98
* Fix Spelling Errors in Documentation by @ScientistIzaak in https://github.com/huggingface/smolagents/pull/99
* Change DuckDuckGoSearchTool output_type to string by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/116
* Auto correct wrong assignments to final_answer by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/123
* Adding "complex" to local_python_executor.py #78 by @joaopauloschuler in https://github.com/huggingface/smolagents/pull/79
* Remove dependency on LiteLLM by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/126
* Support multiple code blobs by @aymeric-roucher in https://github.com/huggingface/smolagents/pull/128
* Fix several typos in docs. by @Symbolk in https://github.com/huggingface/smolagents/pull/140
Great thanks for everyone who participated!