Append a conversation piece into history, meanwhile show it in a new markdown block
(
conversation: Conversation,
history: list[Conversation],
placeholder: DeltaGenerator | None = None,
)
| 40 | |
| 41 | |
| 42 | def append_conversation( |
| 43 | conversation: Conversation, |
| 44 | history: list[Conversation], |
| 45 | placeholder: DeltaGenerator | None = None, |
| 46 | ) -> None: |
| 47 | """ |
| 48 | Append a conversation piece into history, meanwhile show it in a new markdown block |
| 49 | """ |
| 50 | history.append(conversation) |
| 51 | conversation.show(placeholder) |
| 52 | |
| 53 | |
| 54 | st.set_page_config( |
no test coverage detected