We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fa0de commit 62f3a1bCopy full SHA for 62f3a1b
src/openai/_client.py
@@ -170,7 +170,9 @@ def qs(self) -> Querystring:
170
@override
171
def auth_headers(self) -> dict[str, str]:
172
api_key = self.api_key
173
- return {"Authorization": f"Bearer {api_key}"}
+ if api_key :
174
+ return {"Authorization": f"Bearer {api_key}"}
175
+ return {}
176
177
@property
178
@@ -401,7 +403,9 @@ def qs(self) -> Querystring:
401
403
402
404
405
406
407
408
409
410
411
0 commit comments