MCPcopy
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_iteratorFunction · 0.45

Calls 1

iter_bytesMethod · 0.45

Tested by 1

make_event_iteratorFunction · 0.36