From f042eb893aca205185d09dbd97f5e90581aad722 Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 29 Jul 2023 11:30:30 -0400 Subject: [PATCH] clean up Former-commit-id: 00ec3bda6708736e8bb93213d2e8d321c00abce5 --- swarms/swarms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/swarms/swarms.py b/swarms/swarms.py index a03c2cc9..791c147f 100644 --- a/swarms/swarms.py +++ b/swarms/swarms.py @@ -133,6 +133,7 @@ class HierarchicalSwarm: def initialize_worker_node(self, worker_tools, vectorstore, llm_class=ChatOpenAI): try: + llm = self.initialize_llm(ChatOpenAI) worker_node = WorkerNodeInitializer(llm=self.llm, tools=worker_tools, vectorstore=vectorstore) worker_node.create_agent(ai_name=self.worker_name, ai_role="Assistant", search_kwargs={}, human_in_the_loop=self.human_in_the_loop) worker_description = self.worker_prompt