crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

SerperDevTool doesn't work without OpenAI

Open varskann opened this issue 11 months ago • 10 comments

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

Screenshot 2024-03-06 at 12 56 06 PM

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: Screenshot 2024-03-06 at 1 00 30 PM

varskann avatar Mar 06 '24 07:03 varskann