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

Method _iter_events

src/openai/_streaming.py:161–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 yield item
160
161 async def _iter_events(self) -> AsyncIterator[ServerSentEvent]:
162 async for sse in self._decoder.aiter_bytes(self.response.aiter_bytes()):
163 yield sse
164
165 async def __stream__(self) -> AsyncIterator[_T]:
166 cast_to = cast(Any, self._cast_to)

Callers 1

__stream__Method · 0.95

Calls 1

aiter_bytesMethod · 0.45

Tested by

no test coverage detected