Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/openai-python
/ _iter_events
Method
_iter_events
src/openai/_streaming.py:52–53 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
50
yield
item
51
52
def
_iter_events(self) -> Iterator[ServerSentEvent]:
53
yield
from
self._decoder.iter_bytes(self.response.iter_bytes())
54
55
def
__stream__(self) -> Iterator[_T]:
56
cast_to = cast(Any, self._cast_to)
Callers
2
__stream__
Method · 0.95
make_event_iterator
Function · 0.45
Calls
1
iter_bytes
Method · 0.45
Tested by
1
make_event_iterator
Function · 0.36