Skip to content

How can I utilize the 'stream' function to display the response in a streaming format? #115

Closed Answered by brainlid
youfun asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for helping answer @cpursley!

@youfun: Yes, specifically, check out line 310 where the callback is handling a MessageDelta. it sends it as a message to the LiveView which is handled on line 183, which applies the delta to the LLMChain instance owned by the LiveView, updates the LiveView state, which results in rendering the LLM response data as it's streamed in.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brainlid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants