diff --git a/swarms/swarms.py b/swarms/swarms.py index 7496036d..8ba4689e 100644 --- a/swarms/swarms.py +++ b/swarms/swarms.py @@ -13,7 +13,8 @@ class Swarms: # Initialize language model return llm_class(openai_api_key=self.openai_api_key) - def initialize_tools(self, llm): + def initialize_tools(self, llm_class): + llm = self.initialize_llm(llm_class) # Initialize tools web_search = DuckDuckGoSearchRun() tools = [