diff --git a/swarms/tools/main.py b/swarms/tools/main.py index fda6d6bf..27e0432e 100644 --- a/swarms/tools/main.py +++ b/swarms/tools/main.py @@ -31,7 +31,7 @@ class ToolScope(Enum): SessionGetter = Callable[[], Tuple[str, AgentExecutor]] -openai_api_key = os.getenv("OPENAI_API_KEY") +openai_api_key = os.environ["OPENAI_API_KEY"] llm = ChatOpenAI(model_name="gpt-4", temperature=1.0, openai_api_key=openai_api_key)