diff --git a/streamlit_chatbox/messages.py b/streamlit_chatbox/messages.py index bdc8503..7f6d150 100644 --- a/streamlit_chatbox/messages.py +++ b/streamlit_chatbox/messages.py @@ -248,6 +248,7 @@ def from_dict( msg = { "role": h["role"], "elements": [OutputElement.from_dict(y) for y in h["elements"]], + "metadata": h["metadata"], } self.other_history(name).append(msg)