A Next.js chatbot interface integrated with the Ollama API. Features real-time AI responses, markdown formatting with syntax highlighting, and error handling for seamless user interaction.
This project is a frontend chatbot interface using React and Next.js, designed to communicate with the Ollama API for generating AI responses. It supports conversational interactions and formats messages using markdown, including syntax highlighting for code blocks.
http://localhost:11434
https://ollama.com/
src/pages/api/chat.ts
model: "gemma2:latest"
with your modelgit clone https://github.com/MisfitsDevelopment/Ollama-Chatbot-Interface.git
cd Ollama-Chatbot-Interface
yarn install or npm install
yarn dev or npm run dev
http://localhost:3000
.The chatbot uses the Ollama API to generate responses. Ensure that the Ollama API is running locally on http://localhost:11434
. The chat messages are sent to the /api/chat
endpoint, which handles the communication with the Ollama API.
This project is licensed under the MIT License.