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

Method close

src/openai/_streaming.py:233–239  ·  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

231 await self.close()
232
233 async def close(self) -> None:
234 """
235 Close the response and release the connection.
236
237 Automatically called if the response body is read to completion.
238 """
239 await self.response.aclose()
240
241
242class ServerSentEvent:

Callers 1

__aexit__Method · 0.95

Calls 1

acloseMethod · 0.80

Tested by

no test coverage detected