liunux4odoo/streamlit-chatbox — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple Python package for Streamlit that makes it really easy to add a chat UI to an app. I want a reusable chat box component where a user and an assistant can talk, with support for streaming replies as they come in, nice markdown rendering, and the ability to show images, video, audio, and other custom output inside the conversation.

It should handle multiple chat sessions, remember conversation specific state, and let me switch between chats without losing context. I also want messages to be groupable or collapsible when needed, plus a way to export chat history to markdown or json and import it back later. If possible, include lightweight feedback on assistant replies, like thumbs up or down.

Please include a working demo app that shows a normal chat flow and an agent style flow with streaming updates. Keep it practical for people connecting LLMs later. Look up current Streamlit chat docs online if you need to, but make the wrapper convenient to use in real apps.

Want more depth? Deep Reverse