From ff3564ed1977affe4a353d3d5012fb29e0dddd46 Mon Sep 17 00:00:00 2001 From: Kye Date: Wed, 5 Jul 2023 15:00:21 -0400 Subject: [PATCH] clean up tool --- swarms/tools/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarms/tools/main.py b/swarms/tools/main.py index a38649d1..b6273f0d 100644 --- a/swarms/tools/main.py +++ b/swarms/tools/main.py @@ -31,6 +31,8 @@ class ToolScope(Enum): SessionGetter = Callable[[], Tuple[str, AgentExecutor]] +openai_api_key = os.environ["OPENAI_API_KEY"] +llm = ChatOpenAI(model_name="gpt-4", temperature=1.0, openai_api_key=openai_api_key) def tool(