github huggingface/smolagents v1.13.0

one day ago

Important changes 🚀

  • Gradio UI now logs images observed by your agent: log observations images by @aymeric-roucher in #1113
  • allow users to retrieve original Gradio app by @sysradium in #811
  • Re-authorize submodule imports if top was allowed by @aymeric-roucher in #1103
    • We had internal debate about this one: when a user authorizes import of a top level package like additional_authorized_imports=["numpy"], should it:
      • Option 1: by default enable all subpackages like numpy.random, except potentially dangerous ones that we then have to detect through a blocklist?
      • Option 2: not import any subpackage, thus user have to type any subpackage they want to authorize, as in additional_authorized_imports=["numpy", "numpy.random", "numpy.other_subpackage", ...]
        Option 2 is safer, but Option 1 is much more practical, so we went with option 1. Daily disclaimer: code execution can never be 100% safe on you system, if you want to increase safety, use one of the remote executors that we propose, E2B or Docker.

Fixes & Tweaks

New Contributors

Full Changelog: v1.12.0...v1.13.0

Don't miss a new smolagents release

NewReleases is sending notifications on new releases.