Former-commit-id: 99c4f48eb29f24f885fa7360f1a11bca8b27f6b0
pull/160/head
Kye 2 years ago
parent 0fb3915273
commit 154ad85c6a

@ -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
self.openai_api_key = openai_api_key or os.getenv("OPENAI_API_KEY")
if not isinstance(objective, str):
raise TypeError("Objective must be a string")

Loading…
Cancel
Save