Having problem running qwen2:7b locally. Getting 'AgentGenerationError: Error in generating model output'

agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=LiteLLMModel())
replace with
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
check the last part of the code agent creation.
when you dont pass info into it, then it tries to default to Claude

1 Like