Streaming response line chatgpt

Hi,
Does anyone know if I can display chatgpt-like streaming response in Streamlit using streamlit_chat -message?

I need something like message(streaming=True) or any other alternative for this. my code segment is as below:

from streamlit_chat import message
import streamlit as st

for i in range(len(st.session_state['generated']) - 1, -1, -1):
      message(st.session_state['past'][i], is_user=True, key=str(i) + '_user')
      message(st.session_state["generated"][i], key=str(i))

Hey @iamamir,

I’m under the impression this isn’t possible currently with st-chat – linking to the GitHub Issue you created here for anyone else who might be interested in this feature