MCPcopy
hub / github.com/openai/openai-python / _validate_headers

Method _validate_headers

src/openai/_base_client.py:708–717  ·  view source on GitHub ↗

Validate the given default headers and custom headers. Does nothing by default.

(
        self,
        headers: Headers,  # noqa: ARG002
        custom_headers: Headers,  # noqa: ARG002
    )

Source from the content-addressed store, hash-verified

706 }
707
708 def _validate_headers(
709 self,
710 headers: Headers, # noqa: ARG002
711 custom_headers: Headers, # noqa: ARG002
712 ) -> None:
713 """Validate the given default headers and custom headers.
714
715 Does nothing by default.
716 """
717 return
718
719 @property
720 def user_agent(self) -> str:

Callers 1

_build_headersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected