async def on_end(self) -> None:
        """Fires when the stream has finished.

        This happens if the stream is read to completion
        or if an exception occurs during iteration.
        """
Fires when the stream has finished.

        This happens if the stream is read to completion
        or if an exception occurs during iteration.
        
src/openai/lib/streaming/_assistants.py