Can i use write_stream at chat_message?(what is queryresult?)

Hi, First of all, I’m not good at English so I am sorry if my English is rude.

I want to use write_stream at chat_message but I continuously getting only ‘queryresult’

what is problem with my code? Thank you for reading.

# Process new chat inputs
    if prompt := st.chat_input("질문을 적어주세요."):
        st.chat_message("user").write(prompt)
            
        # Create conversational retrieval chain
        qa = RetrievalQA.from_llm(llm=ChatOpenAI(
            streaming=True,
            callbacks=[StreamingStdOutCallbackHandler()],
            temperature=0.0,
            model_name='gpt-4-0125-preview'),
            retriever=vectors.as_retriever())
        
        with st.chat_message("assistant"):
            st.write_stream(qa(prompt)) 

For your information, response that I want is printed in cmd but not on streamlit site…