Error AssertionError: Some prompt templates are missing from your custom `prompt_templates`: {'final_answer'}

#307
by antoniomtz - opened

I simply duplicated the space and get this error during runtime:

Exit code: 1. Reason:

tool.py: 0%| | 0.00/635 [00:00<?, ?B/s]
tool.py: 100%|██████████| 635/635 [00:00<00:00, 2.80MB/s]
Traceback (most recent call last):
File "/home/user/app/app.py", line 79, in
agent = CodeAgent(
File "/usr/local/lib/python3.10/site-packages/smolagents/agents.py", line 1204, in init
super().init(
File "/usr/local/lib/python3.10/site-packages/smolagents/agents.py", line 207, in init
assert not missing_keys, (
AssertionError: Some prompt templates are missing from your custom prompt_templates: {'final_answer'}

Looks like something broke with the latest version of smolagents.
It works on 1.9.2

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment