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