From 8500e0b3d89990a2c04db0cd75eed62882e67a65 Mon Sep 17 00:00:00 2001 From: Kye Date: Sun, 16 Jul 2023 15:44:46 -0400 Subject: [PATCH] clean up Former-commit-id: 30898fe9967fe0228fd78d267d18afd6a153ebe9 --- swarms/agents/workers/WorkerUltraNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarms/agents/workers/WorkerUltraNode.py b/swarms/agents/workers/WorkerUltraNode.py index 44a9f722..90179b97 100644 --- a/swarms/agents/workers/WorkerUltraNode.py +++ b/swarms/agents/workers/WorkerUltraNode.py @@ -30,7 +30,7 @@ except Exception as e: class WorkerUltraNode: def __init__(self, objective: str, openai_api_key: str): - self.openai_api_key = openai_api_key or os.getenv("OPENAI_API_KEY") + self.openai_api_key = openai_api_key if not isinstance(objective, str): raise TypeError("Objective must be a string")