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

Method close

src/openai/_base_client.py:1528–1533  ·  view source on GitHub ↗

Close the underlying HTTPX client. The client will *not* be usable after this.

(self)

Source from the content-addressed store, hash-verified

1526 return self._client.is_closed
1527
1528 async def close(self) -> None:
1529 """Close the underlying HTTPX client.
1530
1531 The client will *not* be usable after this.
1532 """
1533 await self._client.aclose()
1534
1535 async def __aenter__(self: _T) -> _T:
1536 return self

Callers 1

__aexit__Method · 0.95

Calls 1

acloseMethod · 0.80

Tested by

no test coverage detected