Spaces:
Sleeping
Sleeping
Update whale_core/agents.py
Browse files- whale_core/agents.py +1 -1
whale_core/agents.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
# β
Set your OpenAI API key β use one of the two options below:
|
6 |
|
7 |
# π Option 1: Load from environment variable (recommended)
|
8 |
-
openai.api_key = os.
|
9 |
|
10 |
# π§ͺ Optional: fail early if key not set
|
11 |
if not openai.api_key:
|
|
|
5 |
# β
Set your OpenAI API key β use one of the two options below:
|
6 |
|
7 |
# π Option 1: Load from environment variable (recommended)
|
8 |
+
openai.api_key = os.environ["OPENAI_API_KEY"]
|
9 |
|
10 |
# π§ͺ Optional: fail early if key not set
|
11 |
if not openai.api_key:
|