We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8c4b72 commit c204b3eCopy full SHA for c204b3e
src/main.py
@@ -25,9 +25,11 @@
25
import requests
26
from html2text import html2text
27
28
-openai.api_key = os.environ.get("OPENAI_KEY")
+openai.api_key = os.environ.get("OPENAI_API_KEY")
29
if not openai.api_key:
30
- print("Set the environment variable OPENAI_KEY to your api secret key")
+ openai.api_key = os.environ.get("OPENAI_KEY")
31
+if not openai.api_key:
32
+ print("Set the environment variable OPENAI_KEY or OPENAI_API_KEY to your api secret key")
33
exit(1)
34
35
@dataclass
0 commit comments