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

Method _strip_raw_response_header

src/openai/_models.py:973–979  ·  src/openai/_models.py::FinalRequestOptions._strip_raw_response_header
(self)

Source from the content-addressed store, hash-verified

971 return self.max_retries
972
973 def _strip_raw_response_header(self) -> None:
974 if not is_given(self.headers):
975 return
976
977 if self.headers.get(RAW_RESPONSE_HEADER):
978 self.headers = {**self.headers}
979 self.headers.pop(RAW_RESPONSE_HEADER)
980
981 class="cm"># override the `construct` method so that we can run custom transformations.
982 class="cm"># this is necessary as we don't want to do any actual runtime type checking

Callers 1

_info_to_optionsMethod · 0.80

Calls 2

is_givenFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected