opalinski commited on
Commit
cc3559d
·
verified ·
1 Parent(s): 9f39c86

Fix: Specify smolagents version to resolve missing prompt templates

Browse files

This PR addresses an issue where the latest version of smolagents was causing an AssertionError: Some prompt templates are missing from your custom prompt_templates: {‘final_answer’}.
See https://discuss.huggingface.co/t/problem-in-ai-agents-course-smolagents/151299 for discussion.

The fix involves pinning the smolagents version to 1.13.0 in requirements.txt. Previously, the package was installed without a specific version, which resulted in the installation of a broken version.

This change has been tested and resolves the error.

Files changed (1) hide show
  1. requirements.txt +1 -1
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  markdownify
2
- smolagents
3
  requests
4
  duckduckgo_search
5
  pandas
 
1
  markdownify
2
+ smolagents==1.13.0
3
  requests
4
  duckduckgo_search
5
  pandas