Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-python
/ _has_auth_header
Function
_has_auth_header
src/openai/lib/azure.py:52–53 ·
view source on GitHub ↗
(headers: Headers)
Source
from the content-addressed store, hash-verified
50
51
52
def
_has_auth_header(headers: Headers) -> bool:
53
return
_has_header(headers,
"Authorization"
) or _has_header(headers,
"api-key"
)
54
55
56
class
MutuallyExclusiveAuthError(OpenAIError):
Callers
4
_validate_headers
Method · 0.85
_prepare_options
Method · 0.85
_validate_headers
Method · 0.85
_prepare_options
Method · 0.85
Calls
1
_has_header
Function · 0.70
Tested by
no test coverage detected