Skip to main content
Chainlit supports streaming for both Message and Step. Here is an example with openai.

Streaming OpenAI response

Integrations

Streaming is also supported at a higher level for some integrations. For example, to use streaming with Langchain just pass streaming=True when instantiating the LLM:
Also make sure to pass a callback handler to your chain or agent run. See here for final answer streaming.