From 6438ba8e0556590e44e325bc8d9fab32c9aa72e2 Mon Sep 17 00:00:00 2001 From: Kye Date: Wed, 5 Jul 2023 15:29:32 -0400 Subject: [PATCH] clean up --- swarms/tools/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)