.. _examples.text.generation_streaming:

Stream answer from a model
==========================



.. literalinclude:: ../../../examples/text/generation_streaming.py
	:language: python
	:caption: See `generation_streaming.py <https://github.com/IBM/ibm-generative-ai/blob/v2.3.0/examples/text/generation_streaming.py>`_ on GitHub.
	:lines: 3-