Skip to content

Commit

Permalink
[fix] fix bugs about from_dict function
Browse files Browse the repository at this point in the history
  • Loading branch information
ProseGuys committed Mar 28, 2024
1 parent 5da2459 commit 77275a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions streamlit_chatbox/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 77275a2

Please sign in to comment.