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

Method __init__

src/openai/_exceptions.py:100–104  ·  view source on GitHub ↗
(self, message: str, *, response: httpx.Response, body: object | None)

Source from the content-addressed store, hash-verified

98 request_id: str | None
99
100 def __init__(self, message: str, *, response: httpx.Response, body: object | None) -> None:
101 super().__init__(message, response.request, body=body)
102 self.response = response
103 self.status_code = response.status_code
104 self.request_id = response.headers.get("x-request-id")
105
106
107class APIConnectionError(APIError):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected