Hi ,
I try to build a chatbot in streamlit using openai. In the Document page in Develo tab under this topic Build a basic LLM chat app in the streamlit code. we have a code like **"ST.Write_Stream"**. But when i checked theres no code in streamlit like Write_stream. any one from the streamlit please take a look and let me know
# Display assistant response in chat message container
with st.chat_message("assistant"):
stream = client.chat.completions.create(
model=st.session_state["openai_model"],
messages=[
{"role": m["role"], "content": m["content"]}
for m in st.session_state.messages
],
stream=True,
)
response = st.write_stream(stream)
st.session_state.messages.append({"role": "assistant", "content": response}