MCPcopy
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
52def _has_auth_header(headers: Headers) -> bool:
53 return _has_header(headers, "Authorization") or _has_header(headers, "api-key")
54
55
56class MutuallyExclusiveAuthError(OpenAIError):

Callers 4

_validate_headersMethod · 0.85
_prepare_optionsMethod · 0.85
_validate_headersMethod · 0.85
_prepare_optionsMethod · 0.85

Calls 1

_has_headerFunction · 0.70

Tested by

no test coverage detected