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

Method close

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

121 self.close()
122
123 def close(self) -> None:
124 """
125 Close the response and release the connection.
126
127 Automatically called if the response body is read to completion.
128 """
129 self.response.close()
130
131
132class AsyncStream(Generic[_T]):

Calls

no outgoing calls