Skip to content
Discussion options

You must be logged in to vote

chat_message.avartar doesn't support local file,

Oh yes. We would be happy to review any pull requests for this.

what's the best way to implement the streaming response

I'm not sure. "Best way" is quite strong. A simple way would be to replace a ui.markdown or ui.label content with everything from the streaming response you've got so far. Otherwise you would need to build your own ui element which can update wordwise (similar to ui.log_view which updates line-wise).

it refreshes the whole chat box, is this necessary? Is it possible to only update the last chat_message? Relevant with item2.

Should be possible. But would involve more sophisticated coding.

Replies: 1 comment

Comment options

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