A sleek web interface for interacting with the Devins model via Ollama, featuring real-time markdown rendering, syntax highlighting, and a responsive design.
- 🚀 Real-time streaming responses
- 💻 Code syntax highlighting with support for multiple languages
- 📋 One-click code copying
- 🌓 Automatic dark/light theme based on system preferences
↕️ Dynamic input box that expands with content- 📱 Fully responsive design
- 💾 Persistent system instructions
- ⌨️ Keyboard shortcuts (Enter to send, Shift+Enter for new line)
- Ollama installed on your system
- llama3.2 model pulled (
ollama run llama3.2) - A modern web browser
NOTE: Make sure ollama model llama3.2 is installed
- Clone the repository:
git clone https://github.com/ksuhal7201/offline-gpt-gui.git
cd offline-gpt-gui- Give you custom instructions to the model in bash by running:
ollama run llama3.2- Save the model as devins if you haven't already:
/save devins- Open
index.htmlin your web browser:
- The interface will automatically attempt to load the Devins model when opened
- (Optional) Set your system instructions in the left panel
- Type your message in the input box at the bottom
- Press Enter or click Send to submit
- Use Shift+Enter for new lines in your input
Enter: Send messageShift + Enter: New line in input↓(Scroll button): Scroll to latest messages
offline-gpt-gui/
├── index.html # Main HTML structure
├── style.css # Styling and themes
├── script.js # Application logic
└── README.md # Documentation
- Uses the Ollama API endpoint at
localhost:11434 - Implements streaming responses for real-time interaction
- Supports markdown formatting including code blocks
- Uses highlight.js for syntax highlighting
- Stores system prompt in localStorage for persistence
- Implements responsive design with CSS variables for theming
Tested and working in:
- Chrome/Chromium (recommended)
- Firefox
- Safari
- Edge
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT LICENSE - see the LICENSE file for details.
- Ollama for the local LLM infrastructure
- highlight.js for code syntax highlighting