Can someone support here?
I am using local ollama model in CrewAi. When i am trying to train the model running into following error:
File "/demo/.venv/lib/python3.12/site-packages/crewai/crew.py", line 548, in train
result = TaskEvaluator(agent).evaluate_training_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/evaluators/task_evaluator.py", line 143, in evaluate_training_data
pydantic_result = converter.to_pydantic()
^^^^^^^^^^^^^^^^^^^^^^^
File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/converter.py", line 66, in to_pydantic
return self.to_pydantic(current_attempt + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/converter.py", line 66, in to_pydantic
return self.to_pydantic(current_attempt + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/demo/.venv/lib/python3.12/site-packages/crewai/utilities/converter.py", line 67, in to_pydantic
raise ConverterError(
crewai.utilities.converter.ConverterError: Failed to convert text into a Pydantic model due to error: 'NoneType' object has no attribute 'function_calling_llm'
File "/demo/src/demo/main.py", line 43, in train
raise Exception(f"An error occurred while training the crew: {e}")
Exception: An error occurred while training the crew: Failed to convert text into a Pydantic model due to error: 'NoneType' object has no attribute 'function_calling_llm'
An error occurred while training the crew: Command '['uv', 'run', 'train', '1', 'trained.pkl']' returned non-zero exit status 1.
I have tried to reinstall crewai but getting same issue.