Skip to main content
This function creates a stream response for LLM Apps. By using the MorphChatStreamChunk returned by this function and passing it to <LLM/>, you can build a chat application utilizing LLM.
morph_lib.stream

Parameters

text
str
Text to be displayed in the chat stream.
content
str
Content to be displayed in the side-by-side layout of <LLM/>.ex.) html, markdown, etc.

Example