A powerful Streamlit-based chatbot application with support for multiple AI providers and specialized assistants.
- OpenAI: GPT-4.1, GPT-4.1-mini
- DeepSeek: Advanced reasoning models
- xAI: Grok-2, Grok-3, Grok-4
- Anthropic: Claude Sonnet, Opus, Haiku
- Groq: High-speed inference, Llama-4 models
- 💻 Copilots: Base, Novelist, Creator, Fixer, Delamain, Oracle, Snake (Python), Roger (R)
- 🔬 Scientific: Leonardo, Newton, Galileo, Mendel, Watson, Venter, Crick, Darwin, Dawkins, Penrose, Turing
- 🎭 Characters: Julia, Mike, Michael, Miguel, Francois, Luca, Hero, Yoko, Xiao, Peng
- 🌐 Language Teachers: Multi-language support with specialized tutors
- 📷 Multi-modal: Image and text file uploads
- 🔊 Audio: Text-to-speech with voice selection
- 🌍 Translation: Real-time translation to multiple languages
- 💾 Chat Management: Save, load, and export conversations
- ⚡ Quick Commands: Shortcuts for common actions
- 📊 Statistics: Real-time chat analytics
- 🧠 Chain of Thoughts: View AI reasoning process
- 💻 Code Execution: Run Python code directly
Command | Action |
---|---|
@ or - |
Clear entire chat |
+message |
Add message without AI reply |
++instruction |
Add system instruction |
. , undo , back |
Remove last message pair |
- Python 3.8+
- pip
# Clone the repository
git clone https://github.com/johndef64/mychatgpt.git
cd mychatbot
# Install dependencies
pip install -r requirements.txt
# Run the application
streamlit run MyChatbot.py
Create an api_keys.json
file with your API keys:
{
"openai": "your-openai-api-key",
"deepseek": "your-deepseek-api-key",
"grok": "your-xai-api-key",
"groq": "your-groq-api-key",
"anthropic": "your-anthropic-api-key"
}
- Clean Header: Model status and current configuration
- Chat Statistics: Real-time message analytics
- Enhanced Sidebar: Organized configuration sections
- Export Options: Save chats as Markdown or Pickle
- ✅ Better error handling with user-friendly messages
- ✅ Organized sidebar with expandable sections
- ✅ Real-time chat statistics
- ✅ Enhanced quick commands with feedback
- ✅ Model provider indicators
- ✅ Chain of thoughts visualization
- ✅ Export to Markdown functionality
- ✅ Improved API key management
The app includes configurable options for:
- UI themes and colors
- Default models per provider
- Chat behavior settings
- Feature toggles
- Assistant preferences
- Multi-Provider: Switch between AI providers based on your needs
- Specialized Tasks: Choose appropriate assistants for specific domains
- File Context: Upload images or text files for enhanced context
- Chat Management: Save important conversations for later reference
- Quick Actions: Use command shortcuts for faster interaction
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.