Stretch features and what to ship next
You have a working app. Now what makes it stand out? This lesson is the menu of upgrades that turn a demo into a product worth building a brand around.
You have a working car. Stretch features are the radio, the AC, the leather seats. Pick the ones your audience cares about.
Top stretch features for a beginner AI chat app:
- Model picker: let user choose GPT-4o-mini vs Gemini Flash vs Claude Haiku-class.
- Token usage display: show running cost.
- Export chat as Markdown.
- Voice input (
st.audio_input). - Image uploads (multimodal models).
- Themed UI: tweak
themein.streamlit/config.toml. - Authentication: gate behind a simple password or Supabase auth.
- Streaming + cancellation.
- History persistence (Supabase, SQLite).
- Per-conversation save and resume.
Pick 2 and ship. Do not chase them all on the first version.
Token counter:
total_tokens = sum(msg.get("tokens", 0) for msg in st.session_state.messages)
st.sidebar.metric("Tokens used", total_tokens)
Where msg["tokens"] is appended from response.usage per call.
Quick recall
3 prompts · think before you flip
Prompt 1 of 3
What is the cost of shipping too many features at once?
Quiz time
1 question · tap an answer to check it
1. The best feature priority signal is
Finished lesson 6.7?
Mark complete to update your module progress and unlock the streak.
Loading