A lightweight Streamlit chat app powered by GitHub Models via langchain-azure-ai.
It supports:
- ✅ GitHub token input in the UI (no hard-coding needed)
- ✅ System prompt customization
- ✅ Chat history that persists for the session
- ✅ Multiple model choices
- ✅ Safe token handling (stored only in session state)
- ✅ Clear chat functionality
uv init
uv add streamlit langchain-azure-aiFirst get your GitHub access token from https://github.com/settings/apps.
You have two options to provide the token in the app:
- Easiest (local testing) – Paste it in the sidebar when running the app.
- Environment variable
export GITHUB_TOKEN="ghp_...your_token..."
uv run streamlit run app.py- Start the app (above command).
- Open the URL shown in your terminal (usually http://localhost:8501).