We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f3a1b commit 634948bCopy full SHA for 634948b
src/openai/_client.py
@@ -110,10 +110,7 @@ def __init__(
110
"""
111
if api_key is None:
112
api_key = os.environ.get("OPENAI_API_KEY")
113
- if api_key is None:
114
- raise OpenAIError(
115
- "The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"
116
- )
+
117
self.api_key = api_key
118
119
if organization is None:
@@ -343,10 +340,7 @@ def __init__(
343
340
344
341
345
342
346
347
348
349
350
351
352
0 commit comments