{"id":24661,"library":"streamlit-chat","title":"Streamlit Chat","description":"A Streamlit component for building chatbot UIs. Current version 0.1.1, requires Python >=3.6. The package provides a simple message display component with avatar support, but is in early maintenance mode with no recent updates.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/AI-Yash/st-chat","tags":["streamlit","chatbot","component","streamlit-component"],"install":[{"cmd":"pip install streamlit-chat","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The package is imported as streamlit_chat, not st_chat","wrong":"from st_chat import message","symbol":"message","correct":"from streamlit_chat import message"}],"quickstart":{"code":"import streamlit as st\nfrom streamlit_chat import message\n\nmessage(\"Hello, I am a chatbot!\", key=\"chat1\")\nmessage(\"Hi there!\", is_user=True, key=\"chat2\")","lang":"python","description":"Minimal example displaying two chat messages (bot and user)."},"warnings":[{"fix":"Always pass a unique `key` string (e.g., f\"msg_{i}\") to each `message()` call.","message":"The `message` component requires a unique `key` for each call, or Streamlit will raise a DuplicateKey error.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using native Streamlit chat elements (`st.chat_message`, `st.chat_input`) instead.","message":"The package uses the old Streamlit component API and may not be compatible with newer Streamlit versions (>=1.27).","severity":"deprecated","affected_versions":">=1.27"},{"fix":"Set custom avatars via the `avatar_style` and `seed` parameters, or ensure internet access.","message":"Avatars are fetched from DiceBear API; network issues can cause avatars to fail silently.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use dynamic keys: `message(\"text\", key=f\"msg_{i}\")`.","cause":"Each `message()` call must have a unique key.","error":"DuplicateWidgetID: There are multiple identical st_chat_message widgets with the same key."},{"fix":"Run `import streamlit_chat` instead of st_chat.","cause":"Incorrect import path. The correct module is 'streamlit_chat'.","error":"ModuleNotFoundError: No module named 'st_chat'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}