crewAI
crewAI copied to clipboard
SerperDevTool doesn't work without OpenAI
Reproducing the example https://docs.crewai.com/core-concepts/Tasks/#creating-a-task-with-tools
The code works fine when used with OpenAI models, but not when trying to use Llamma2 with Ollama
Code Snipped to Load Llama2:
from langchain_community.llms import Ollama
# To Load Local models through Ollama
llm_llama = Ollama(model="llama2")
research_agent = Agent(
role='Researcher',
goal='Find and summarize the latest AI news',
backstory="""You're a researcher at a large company.
You're responsible for analyzing data and providing insights
to the business.""",
verbose=False,
llm=llm_llama
)
Even SerperDev fails to fetch news while using Llama2 model: