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(