Fix: Specify smolagents version to resolve missing prompt templates
Browse filesThis 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.
- 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
|