fix: update template to use InferenceClientModel instead of deprecated HfApiModel
#715
by mbilvl - opened
Description
This PR updates the app.py starter template to use the modern InferenceClientModel class instead of the legacy HfApiModel class.
Motivation
As outlined in the core smolagents documentation and recent course text materials, HfApiModel has been deprecated and phased out in newer releases of the framework. Keeping HfApiModel in the base template causes breaking ImportError or deprecation runtime warnings for students trying to run their first agents locally or on newer environments.
Aligning this template with the actual course reading material will drastically reduce friction for beginners joining the course!
Changes
- Swapped
HfApiModelimport toInferenceClientModelfromsmolagents. - Updated the
modelinstantiation block to useInferenceClientModel.
mbilvl changed pull request status to closed