From c59ef820a92c738303f9c63d0188c72062f92580 Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 13 Jul 2023 08:30:32 -0400 Subject: [PATCH] build llm Former-commit-id: 854e6ad78c305934beca78d7474ea28d70e8e5cf --- swarms/agents/utils/AgentBuilder.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/swarms/agents/utils/AgentBuilder.py b/swarms/agents/utils/AgentBuilder.py index 3adaca45..ada152a9 100644 --- a/swarms/agents/utils/AgentBuilder.py +++ b/swarms/agents/utils/AgentBuilder.py @@ -23,10 +23,7 @@ class AgentBuilder: self.toolsets = toolsets def build_llm(self, callback_manager: BaseCallbackManager = None, openai_api_key: str = None): - self.llm = ChatOpenAI( - temperature=0, callback_manager=callback_manager, verbose=True, openai_api_key=openai_api_key - ) - self.llm.check_access() + self.llm = ChatOpenAI(openai_api_key=openai_api_key, temperature=0, callback_manager=callback_manager, verbose=True) def build_parser(self): self.parser = EvalOutputParser()