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

Method close

src/openai/_response.py:463–468  ·  view source on GitHub ↗

Close the response and release the connection. Automatically called if the response body is read to completion.

(self)

Source from the content-addressed store, hash-verified

461 return self.http_response.json()
462
463 async def close(self) -> None:
464 """Close the response and release the connection.
465
466 Automatically called if the response body is read to completion.
467 """
468 await self.http_response.aclose()
469
470 async def iter_bytes(self, chunk_size: int | None = None) -> AsyncIterator[bytes]:
471 """

Callers

nothing calls this directly

Calls 1

acloseMethod · 0.80

Tested by

no test coverage detected