From f549021541dd3274ac89780e524c1a770cbc09c1 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 8 Jan 2025 01:56:30 -0800 Subject: [PATCH] Update smolagents.py --- examples/smolagents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/smolagents.py b/examples/smolagents.py index 6c0275e..7c38397 100644 --- a/examples/smolagents.py +++ b/examples/smolagents.py @@ -8,7 +8,7 @@ from smolagents import CodeAgent, LiteLLMModel, DuckDuckGoSearchTool from env import WEBUI_URL, TOKEN from utils import send_message, send_typing -search_tool = DuckDuckGoSearchTool() +# search_tool = DuckDuckGoSearchTool() MODEL_ID = "llama3.2:latest" @@ -16,7 +16,7 @@ model = LiteLLMModel( model_id=f"openai/{MODEL_ID}", api_base=f"{WEBUI_URL}/api/", api_key=TOKEN ) agent = CodeAgent( - tools=[search_tool], model=model, additional_authorized_imports=["requests", "bs4"] + tools=[], model=model, additional_authorized_imports=["requests", "bs4"] )