From 77275a2f9cff7ea199480abaedf149dc10fff8a3 Mon Sep 17 00:00:00 2001 From: ProseGuys <798770222@qq.com> Date: Thu, 28 Mar 2024 11:11:06 +0800 Subject: [PATCH] [fix] fix bugs about from_dict function --- streamlit_chatbox/messages.py | 1 + 1 file changed, 1 insertion(+) 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)