From 1b488b6da77dc0dc1d96d45e9ef6213b3f8eceeb Mon Sep 17 00:00:00 2001 From: luctrate Date: Thu, 13 Feb 2025 14:19:52 +0100 Subject: [PATCH] fix: Missing required template variable 'current_year' in description (#2085) --- src/crewai/cli/templates/crew/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crewai/cli/templates/crew/main.py b/src/crewai/cli/templates/crew/main.py index 104f146c0..d9fe85d42 100644 --- a/src/crewai/cli/templates/crew/main.py +++ b/src/crewai/cli/templates/crew/main.py @@ -56,7 +56,8 @@ def test(): Test the crew execution and returns the results. """ inputs = { - "topic": "AI LLMs" + "topic": "AI LLMs", + "current_year": str(datetime.now().year) } try: {{crew_name}}().crew().test(n_iterations=int(sys.argv[1]), openai_model_name=sys.argv[2], inputs=inputs)