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

Method _send_request

src/openai/_client.py:471–481  ·  view source on GitHub ↗
(
        self,
        request: httpx.Request,
        *,
        stream: bool,
        **kwargs: Unpack[HttpxSendArgs],
    )

Source from the content-addressed store, hash-verified

469
470 @override
471 def _send_request(
472 self,
473 request: httpx.Request,
474 *,
475 stream: bool,
476 **kwargs: Unpack[HttpxSendArgs],
477 ) -> httpx.Response:
478 response = self._send_with_auth_retry(request, stream=stream, **kwargs)
479 if self._provider_runtime is not None and self._provider_runtime.normalize_response is not None:
480 response = self._provider_runtime.normalize_response(response)
481 return response
482
483 @override
484 def _auth_headers(self, security: SecurityOptions) -> dict[str, str]:

Callers 2

_send_with_auth_retryMethod · 0.45
_send_with_auth_retryMethod · 0.45

Calls 1

_send_with_auth_retryMethod · 0.95

Tested by

no test coverage detected