File size: 2,436 Bytes
2329908 bbef364 2329908 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
---
license: mit
title: chatbot-ollama
sdk: docker
emoji: π
colorFrom: indigo
colorTo: gray
---
# Chatbot Ollama
## About
Chatbot Ollama is an open source chat UI for Ollama.
This project is based on [chatbot-ui](https://github.com/mckaywrigley/chatbot-ui) by [Mckay Wrigley](https://github.com/mckaywrigley).

## Updates
Chatbot Ollama will be updated over time.
### Next up
- [ ] pull a model
- [ ] delete a model
- [ ] show model information
## Docker
Build locally:
```shell
docker build -t chatbot-ollama .
docker run -p 3000:3000 chatbot-ollama
```
Pull from ghcr:
```bash
docker run -p 3000:3000 ghcr.io/ivanfioravanti/chatbot-ollama:main
```
## Running Locally
### 1. Clone Repo
```bash
git clone https://github.com/ivanfioravanti/chatbot-ollama.git
```
### 2. Move to folder
```bash
cd chatbot-ollama
```
### 3. Install Dependencies
```bash
npm ci
```
### 4. Run Ollama server
Either via the cli:
```bash
ollama serve
```
or via the [desktop client](https://ollama.ai/download)
### 5. Run App
```bash
npm run dev
```
### 6. Use It
You should be able to start chatting.
## Configuration
When deploying the application, the following environment variables can be set:
| Environment Variable | Default value | Description |
| --------------------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| DEFAULT_MODEL | `mistral:latest` | The default model to use on new conversations |
| NEXT_PUBLIC_DEFAULT_SYSTEM_PROMPT | [see here](utils/app/const.ts) | The default system prompt to use on new conversations |
| NEXT_PUBLIC_DEFAULT_TEMPERATURE | 1 | The default temperature to use on new conversations |
## Contact
If you have any questions, feel free to reach out to me on [X](https://x.com/ivanfioravanti). |